summaryrefslogtreecommitdiff
path: root/scripts/context/lua/mtx-cache.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-05-12 16:00:23 +0300
committerMarius <mariausol@gmail.com>2013-05-12 16:00:23 +0300
commite2826d557235ef9db2f9f8abb8c7b03496efbc0b (patch)
tree11234e20f62a77312bc4f18fe72d38c2fd49e4b3 /scripts/context/lua/mtx-cache.lua
parent6eed43a8310a1845bb14121040a3fb027ced164c (diff)
downloadcontext-e2826d557235ef9db2f9f8abb8c7b03496efbc0b.tar.gz
beta 2013.05.12 14:50
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