From 3c8aa63e9a44b6d109053c24c7724f0093d799ae Mon Sep 17 00:00:00 2001 From: Dany LE Date: Mon, 3 Oct 2022 19:03:09 +0200 Subject: [PATCH] fix: VFS prefix shall use only one / --- os/libs/packages.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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