summaryrefslogtreecommitdiffstats
path: root/tools/build-pkg.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build-pkg.lua')
-rwxr-xr-xtools/build-pkg.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index 638a2b4..38500e8 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -531,13 +531,16 @@ end
local function removeEmptyDirs(item)
-- removing an empty dir can reveal another one (parent)
+ -- don't pass item to mute the log message
local go_on = true
while go_on do
go_on = false
local f = io.popen('find usr/* -empty -type d', 'r')
for dir in f:lines() do
- log("Remove empty directory %s created by %s",
- dir, item)
+ if item then
+ log("Remove empty directory %s created by %s",
+ dir, item)
+ end
os.remove(dir)
go_on = true
end