diff --git a/os/libs/packages.lua b/os/libs/packages.lua index 27b00b2..ecb3394 100644 --- a/os/libs/packages.lua +++ b/os/libs/packages.lua @@ -4,7 +4,7 @@ local uid = ulib.uid(SESSION.user) packages._cache = function(y) local p = vfs.ospath(y).."/packages.cache" - if y:find("^os://") then + if y:find("^os:/") then p = __api__.tmpdir.."/packages.cache" end local f = io.open(p, "w") @@ -44,7 +44,7 @@ packages.list = function(paths) --std.f(__ROOT__.."/system/packages.json") for k,v in pairs(paths) do local osp = vfs.ospath(v.."/packages.cache") - if v:find("^os://") then + if v:find("^os:/") then osp = __api__.tmpdir.."/packages.cache" end if ulib.exists(osp) == false then