Gentoo Archives: gentoo-perl

From: antoine.raillon@××××××.net
To: gentoo-perl@l.g.o
Subject: [gentoo-perl] r40 - in trunk: bin extra-docs
Date: Sun, 05 Jun 2005 20:40:37
Message-Id: 20050605204045.D3AF88280A0@gredin.dragou.net
Author: mcummings
Date: 2005-06-05 22:40:45 +0200 (Sun, 05 Jun 2005)
New Revision: 40

Modified:
   trunk/bin/g-cpan.pl
   trunk/extra-docs/Changes
Log:
bug 95146



Modified: trunk/bin/g-cpan.pl
===================================================================
--- trunk/bin/g-cpan.pl	2005-06-02 21:21:37 UTC (rev 39)
+++ trunk/bin/g-cpan.pl	2005-06-05 20:40:45 UTC (rev 40)
@@ -97,7 +97,7 @@
     }
 
 # Output error if no arguments
-if ( (scalar(@ARGV) == 0 ) or  !(defined($upgrade) or defined($list))  ) {
+if ( (scalar(@ARGV) == 0 ) and !(defined($upgrade) or defined($list))  ) {
     print_err ("Not even one module name or expression given !\n");
     print "${white}Please consult ${cyan}$prog ${green}--help${reset} for more information\n\n";
 	exit();

Modified: trunk/extra-docs/Changes
===================================================================
--- trunk/extra-docs/Changes	2005-06-02 21:21:37 UTC (rev 39)
+++ trunk/extra-docs/Changes	2005-06-05 20:40:45 UTC (rev 40)
@@ -1,3 +1,7 @@
+05/06/2005 - mcummings
+
+- Bug 95146 (http://bugs.gentoo.org/show_bug.cgi?id=95146) - lists/upgrades failed because of a lack of arguments. Thanks to Moshe Kaminsky for catching the or vs and on this.
+
 02/06/2005 - mcummings
 
 - Bug 94850 (http://bugs.gentoo.org/show_bug.cgi?id=94850) brought to light the interesting scenario of having PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /some/path" in your make.conf - the result is that when we split on space, we get a null string as an overlay dir, which works since as root you can write to /perl-gcpan. 


-- 
gentoo-perl@g.o mailing list