[csw-devel] SF.net SVN: gar:[16119] csw/mgar/gar/v2/bin/mkpackage
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Mon Nov 7 10:34:28 CET 2011
Revision: 16119
http://gar.svn.sourceforge.net/gar/?rev=16119&view=rev
Author: wahwah
Date: 2011-11-07 09:34:28 +0000 (Mon, 07 Nov 2011)
Log Message:
-----------
mkpackage: Fix the uninitialized $REVISION warning
http://lists.opencsw.org/pipermail/maintainers/2011-November/015632.html
A patch from Andrey Bondarenko. Thanks!
Modified Paths:
--------------
csw/mgar/gar/v2/bin/mkpackage
Modified: csw/mgar/gar/v2/bin/mkpackage
===================================================================
--- csw/mgar/gar/v2/bin/mkpackage 2011-11-07 05:33:07 UTC (rev 16118)
+++ csw/mgar/gar/v2/bin/mkpackage 2011-11-07 09:34:28 UTC (rev 16119)
@@ -25,10 +25,10 @@
# Tool Version/Revision Information
$TOOLVERSION = "1.4";
($REVISION) = q/$Revision$/ =~ /(\d+)/;
-# This shows a warning:
-# "Use of uninitialized value $REVISION in sprintf at
-# /home/maciej/src/opencsw/pkg/nspr/trunk/gar/bin/mkpackage line 31."
-$VERSION = sprintf '%s (r%d)', $TOOLVERSION, $REVISION;
+$VERSION = $TOOLVERSION;
+if ( defined $REVISION ) {
+ $VERSION = sprintf '%s (r%d)', $TOOLVERSION, $REVISION;
+}
# Discover network support
( $HAS_LWP_SUPPORT, $HAS_CURL_SUPPORT ) = ( 0, 0 );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list