aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2022-06-11 16:02:47 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2022-06-11 16:04:17 +0200
commitb79f3a537c62c4f1d987ccf33ab38cddeb3d1d9d (patch)
tree93c3bd2c36e6d78a05b7a0e4861efe0f4fd4e3dd
parente3807dca1b4868ccc0f50bf70487ac7e56174629 (diff)
downloadiurt-b79f3a537c62c4f1d987ccf33ab38cddeb3d1d9d.tar
iurt-b79f3a537c62c4f1d987ccf33ab38cddeb3d1d9d.tar.gz
iurt-b79f3a537c62c4f1d987ccf33ab38cddeb3d1d9d.tar.bz2
iurt-b79f3a537c62c4f1d987ccf33ab38cddeb3d1d9d.tar.xz
iurt-b79f3a537c62c4f1d987ccf33ab38cddeb3d1d9d.zip
fix calling clean_chroot()
The call wasn't matching the function signature thus breaking cleaning chroots. Bug introducted in commit 69e74732d254c75adc20afc25a8729ca568be832 I wonder why nobody saw it before ??
-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;
}