commit a5187405d948d025aa87693896acf4a2065f04d0
parent 2f1f5481f8b6897477bc7de5d588f7ad1e37f0a0
Author: phoebos <ben@bvnf.space>
Date: Tue, 18 Jul 2023 02:15:27 +0100
pkg.iscached: return filename or nil rather than boolean
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bliss/pkg.lua b/bliss/pkg.lua
@@ -39,10 +39,10 @@ local function iscached(env, pkg, version)
local sb = sys_stat.stat(f)
if sb then
- return true
+ return f
else
local g = glob.glob(myglob, 0)
- return not not g
+ return g and g[1] or nil
end
end