diff options
author | Arnaud Patard <rtp@mageia.org> | 2012-07-03 15:33:07 +0000 |
---|---|---|
committer | Arnaud Patard <rtp@mageia.org> | 2012-07-03 15:33:07 +0000 |
commit | 3df42d1a8738eaed08af394e1fcf84a76cecfa54 (patch) | |
tree | 4cf34169f5b53478f105f09143c14c9702ed9654 /lib/Iurt | |
parent | d8494bc2873592795e462cced9237a6cc3558047 (diff) | |
download | iurt-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.pm | 2 |
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; } |