[Midnightbsd-cvs] mports: Chroot.pm: When testing for loopback failure, make sure that it

ctriv at midnightbsd.org ctriv at midnightbsd.org
Wed Oct 31 16:52:57 EDT 2007


Log Message:
-----------
When testing for loopback failure, make sure that it isn't the case that the
chroot simply doesn't exist.

Modified Files:
--------------
    mports/Tools/lib/Magus:
        Chroot.pm (r1.11 -> r1.12)

-------------- next part --------------
Index: Chroot.pm
===================================================================
RCS file: /home/cvs/mports/Tools/lib/Magus/Chroot.pm,v
retrieving revision 1.11
retrieving revision 1.12
diff -LTools/lib/Magus/Chroot.pm -LTools/lib/Magus/Chroot.pm -u -r1.11 -r1.12
--- Tools/lib/Magus/Chroot.pm
+++ Tools/lib/Magus/Chroot.pm
@@ -99,7 +99,7 @@
 
   # check to make sure that things are working properly in the chroot, a restart
   # or deleting /usr/mports can break the loopback.
-  if (!-e "$self->{root}/usr/mports/Makefile") {
+  if (-d $self->{root} && !-e "$self->{root}/usr/mports/Makefile") {
     $self->delete;
   }
   


More information about the Midnightbsd-cvs mailing list