aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-08-27 04:12:01 +0000
committerThierry Vignaud <tv@mageia.org>2012-08-27 04:12:01 +0000
commit69b8d5b4763fdccfe790e0d8ae53c5d3bc69624a (patch)
tree8d4397b8fb80b86393f23e39a399bd9f13e59c4a /lib
parent5b1db5af6b85b87fb8607a94b9b4b82ffee495db (diff)
downloadiurt-69b8d5b4763fdccfe790e0d8ae53c5d3bc69624a.tar
iurt-69b8d5b4763fdccfe790e0d8ae53c5d3bc69624a.tar.gz
iurt-69b8d5b4763fdccfe790e0d8ae53c5d3bc69624a.tar.bz2
iurt-69b8d5b4763fdccfe790e0d8ae53c5d3bc69624a.tar.xz
iurt-69b8d5b4763fdccfe790e0d8ae53c5d3bc69624a.zip
(remove_chroot) pass missing 'config' parameter to clean_all_chroot_tmp()
bug introduced in commit r5307 by pterjan on 2012-08-08 (was: "Initial btrfs support")
Diffstat (limited to 'lib')
-rw-r--r--lib/Iurt/Chroot.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index 4d6478f..4a51144 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -208,7 +208,7 @@ sub create_temp_chroot {
}
sub remove_chroot {
- my ($run, $dir, $prefix) = @_;
+ my ($run, $config, $dir, $prefix) = @_;
plog("Remove existing chroot");
plog('DEBUG', "... dir $dir all $run->{clean_all} prefix $prefix");
@@ -218,12 +218,12 @@ sub remove_chroot {
foreach (readdir $chroot_dir) {
next if !-d "$dir/$_" || /\.{1,2}/;
plog("cleaning old chroot for $_ in $dir");
- clean_all_chroot_tmp($run, "$dir/$_", $prefix);
+ clean_all_chroot_tmp($run, $config, "$dir/$_", $prefix);
}
} else {
foreach my $user (@{$run->{clean}}) {
plog("cleaning old chroot for $user in $dir");
- clean_all_chroot_tmp($run, "$dir/$user", $prefix);
+ clean_all_chroot_tmp($run, $config, "$dir/$user", $prefix);
}
}
}