aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt
diff options
context:
space:
mode:
authorArnaud Patard <rtp@mageia.org>2012-07-03 15:33:07 +0000
committerArnaud Patard <rtp@mageia.org>2012-07-03 15:33:07 +0000
commit3df42d1a8738eaed08af394e1fcf84a76cecfa54 (patch)
tree4cf34169f5b53478f105f09143c14c9702ed9654 /lib/Iurt
parentd8494bc2873592795e462cced9237a6cc3558047 (diff)
downloadiurt-3df42d1a8738eaed08af394e1fcf84a76cecfa54.tar
iurt-3df42d1a8738eaed08af394e1fcf84a76cecfa54.tar.gz
iurt-3df42d1a8738eaed08af394e1fcf84a76cecfa54.tar.bz2
iurt-3df42d1a8738eaed08af394e1fcf84a76cecfa54.tar.xz
iurt-3df42d1a8738eaed08af394e1fcf84a76cecfa54.zip
- Fix broken test in clean_chroot, leading to chroot not being cleaned.
Diffstat (limited to 'lib/Iurt')
-rw-r--r--lib/Iurt/Chroot.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index c2fe78e..4c9cfd1 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -49,7 +49,7 @@ sub clean_chroot {
open(my $FP, "/proc/mounts") or die $!;
my @list = grep { /$chroot/ } <$FP>;
close($FP);
- if (@list >= 0) {
+ if (@list) {
# Still referenced
return 1;
}