summaryrefslogtreecommitdiff
path: root/scripts/context/lua/mtx-cache.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/context/lua/mtx-cache.lua')
-rw-r--r--scripts/context/lua/mtx-cache.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/context/lua/mtx-cache.lua b/scripts/context/lua/mtx-cache.lua
index cd5512618..bff1cb496 100644
--- a/scripts/context/lua/mtx-cache.lua
+++ b/scripts/context/lua/mtx-cache.lua
@@ -91,13 +91,14 @@ local function purge(banner,path,list,all)
end
report("removed tma files : %i",n)
report()
+ return n
end
function scripts.cache.purge()
local writable = caches.getwritablepath()
local tmas, tmcs, rest = collect(writable)
list("writable path",writable,tmas,tmcs,rest)
- local n = purge("writable path",writable,tmas)
+ purge("writable path",writable,tmas)
list("writable path",writable,tmas,tmcs,rest)
end
@@ -105,7 +106,7 @@ function scripts.cache.erase()
local writable = caches.getwritablepath()
local tmas, tmcs, rest, all = collect(writable)
list("writable path",writable,tmas,tmcs,rest)
- local n = purge("writable path",writable,all,true)
+ purge("writable path",writable,all,true)
list("writable path",writable,tmas,tmcs,rest)
end