diff options
| author | Philipp Gesang <phg@phi-gamma.net> | 2015-11-29 22:53:50 +0100 | 
|---|---|---|
| committer | Philipp Gesang <phg@phi-gamma.net> | 2015-11-29 22:53:50 +0100 | 
| commit | 12b177a7f918797314efadf3a70afe40b3e060e5 (patch) | |
| tree | 3254587ae3352186b2f6798c2a06b89cbf1d6ee0 /src/luaotfload-diagnostics.lua | |
| parent | 3966255142bdf450ea92376349160f90a69368f8 (diff) | |
| parent | 9ceba217e323ab5572ab32708af1f4e1934397a7 (diff) | |
| download | luaotfload-12b177a7f918797314efadf3a70afe40b3e060e5.tar.gz | |
Merge pull request #301 from phi-gamma/master
fixes, rc3
Diffstat (limited to 'src/luaotfload-diagnostics.lua')
| -rw-r--r-- | src/luaotfload-diagnostics.lua | 15 | 
1 files changed, 9 insertions, 6 deletions
| diff --git a/src/luaotfload-diagnostics.lua b/src/luaotfload-diagnostics.lua index 582105a..a3a1841 100644 --- a/src/luaotfload-diagnostics.lua +++ b/src/luaotfload-diagnostics.lua @@ -3,7 +3,7 @@  --         FILE:  luaotfload-diagnostics.lua  --  DESCRIPTION:  functionality accessible by the --diagnose option  -- REQUIREMENTS:  luaotfload-tool.lua ---       AUTHOR:  Philipp Gesang (Phg), <phg42.2a@gmail.com> +--       AUTHOR:  Philipp Gesang <phg@phi-gamma.net>  -----------------------------------------------------------------------  --  local names                    = fonts.names @@ -171,6 +171,11 @@ local get_permissions = function (t, location)          location = lpegmatch (stripslashes, location)      end      local attributes = lfsattributes (location) +    if not attributes then +        print"" +        print("attr", location, attributes) +        os.exit() +    end      if not attributes and t == "f" then          attributes = get_tentative_attributes (location) @@ -238,12 +243,10 @@ local check_conformance = function (spec, permissions, errcnt)      return errcnt  end -local desired_permissions  local init_desired_permissions = function () -    inspect(config.luaotfload.paths)      local paths = config.luaotfload.paths -    desired_permissions = { -        { "d", {"r","w"}, function () return caches.getwritablepath () end }, +    return { +        { "d", {"r","w"}, function () return caches.getwritablepath ("", "") end },          { "d", {"r","w"}, paths.prefix },          { "f", {"r","w"}, paths.index_path_lua .. ".gz" },          { "f", {"r","w"}, paths.index_path_luc }, @@ -254,7 +257,7 @@ end  local check_permissions = function (errcnt)      out [[=============== file permissions ==============]] -    if not desired_permissions then init_desired_permissions () end +    local desired_permissions = init_desired_permissions ()      for i = 1, #desired_permissions do          local t, spec, path = unpack (desired_permissions[i])          if type (path) == "function" then | 
