Update of /cvsroot/fink/fink/perlmod/Fink
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv19069

Modified Files:
      Tag: branch_0_24
        VirtPackage.pm 
Log Message:
make sure /usr/bin/machine is an executable before we call it


Index: VirtPackage.pm
===================================================================
RCS file: /cvsroot/fink/fink/perlmod/Fink/VirtPackage.pm,v
retrieving revision 1.68.2.19
retrieving revision 1.68.2.20
diff -u -d -r1.68.2.19 -r1.68.2.20
--- VirtPackage.pm      20 Jul 2006 02:47:31 -0000      1.68.2.19
+++ VirtPackage.pm      20 Jul 2006 15:17:12 -0000      1.68.2.20
@@ -165,9 +165,14 @@
 
 =cut
 
+my $cpu;
 print STDERR "- checking for 64bit-cpu... cpu type is " if ($options{debug});
-       my $cpu = `/usr/bin/machine`;
+if (-x "/usr/bin/machine") {
+       $cpu = `/usr/bin/machine`;
        chomp $cpu;
+} else {
+       $cpu = "unknown";
+}
        print STDERR "$cpu..." if ($options{debug});
 # possible values seem to be:
 #   ppc750 (G3, not 64bit capable)


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to