From 3df42d1a8738eaed08af394e1fcf84a76cecfa54 Mon Sep 17 00:00:00 2001 From: Arnaud Patard Date: Tue, 3 Jul 2012 15:33:07 +0000 Subject: - Fix broken test in clean_chroot, leading to chroot not being cleaned. --- lib/Iurt/Chroot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.1