aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--lib/Iurt/Chroot.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index d788489..a126dd3 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- Fix cleaning chroots (eg: when using --clean-all)
+
0.7.17.2
- iurt: Use consistent log directory (fixes a crash on Mageia BS).
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index 27f76c8..34520d1 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -236,7 +236,7 @@ sub clean_all_chroot_tmp {
}
foreach (readdir($dir)) {
/$prefix/ or next;
- clean_chroot($run, $config, "$chroot_dir/$_");
+ clean_chroot("$chroot_dir/$_", $run, $config);
}
closedir $dir;
}