summaryrefslogtreecommitdiff
path: root/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-07-06 02:18:35 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-07-06 02:18:35 +0200
commit0df29d1d2f8c6c3a9e11959207912197a43d456f (patch)
tree7a768d6a753e4cfdf4291f3b2d40d9029810ae9b /luaotfload-database.lua
parentc917abdd4c6032b1e715555bc626a987b014e4ab (diff)
downloadluaotfload-0df29d1d2f8c6c3a9e11959207912197a43d456f.tar.gz
fix names of bytecode compiled files
Diffstat (limited to 'luaotfload-database.lua')
-rw-r--r--luaotfload-database.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index f09c348..f939e83 100644
--- a/luaotfload-database.lua
+++ b/luaotfload-database.lua
@@ -1947,7 +1947,7 @@ save_lookups = function ( )
osremove (lucname)
caches.compile (lookups, luaname, lucname)
--- double check ...
- if lfsisfile (luaname) and lfsisfile (luaname) then
+ if lfsisfile (luaname) and lfsisfile (lucname) then
report ("both", 3, "cache", "Lookup cache saved")
return true
end
@@ -1956,10 +1956,10 @@ save_lookups = function ( )
end
report ("info", 0, "cache", "Lookup cache file not writable")
if not fileiswritable (luaname) then
- report ("info", 0, "cache", "failed to write %s", luaname)
+ report ("info", 0, "cache", "Failed to write %s", luaname)
end
if not fileiswritable (lucname) then
- report ("info", 0, "cache", "failed to write %s", lucname)
+ report ("info", 0, "cache", "Failed to write %s", lucname)
end
return false
end
@@ -1974,7 +1974,7 @@ save_names = function (fontnames)
tabletofile (luaname, fontnames, true)
osremove (lucname)
caches.compile (fontnames, luaname, lucname)
- if lfsisfile (luaname) and lfsisfile (luaname) then
+ if lfsisfile (luaname) and lfsisfile (lucname) then
report ("info", 1, "db", "Font index saved")
report ("info", 3, "db", "Text: " .. luaname)
report ("info", 3, "db", "Byte: " .. lucname)
@@ -1985,10 +1985,10 @@ save_names = function (fontnames)
end
report ("info", 0, "db", "Index file not writable")
if not fileiswritable (luaname) then
- report ("info", 0, "db", "failed to write %s", luaname)
+ report ("info", 0, "db", "Failed to write %s", luaname)
end
if not fileiswritable (lucname) then
- report ("info", 0, "db", "failed to write %s", lucname)
+ report ("info", 0, "db", "Failed to write %s", lucname)
end
return false
end