mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-19 18:08:21 +01:00
fix: VFS prefix shall use only one /
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good
This commit is contained in:
parent
1d9107cc04
commit
3c8aa63e9a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user