[feedgnuplot] 02/10: The version is now treated as a string not as a number

Dima Kogan dima at secretsauce.net
Sun Oct 29 21:09:28 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkogan pushed a commit to annotated tag debian/1.45-1
in repository feedgnuplot.

commit 6f091d1cf2ed569b6acca5c1d15b460579378269
Author: Dima Kogan <dima at secretsauce.net>
Date:   Sat Sep 30 11:02:18 2017 -0700

    The version is now treated as a string not as a number
    
    Before this a version 1.40 was seen as 1.4
---
 Makefile.PL     | 4 ++--
 bin/feedgnuplot | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile.PL b/Makefile.PL
index a02c839..6863f49 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -20,9 +20,9 @@ sub parseversion
 
   while(<PL>)
   {
-    if( /VERSION = ([0-9\.]+)/ )
+    if( /VERSION = '([0-9\.]+)'/ )
     {
-      if ( $1 != $version )
+      if ( $1 ne $version )
       {
         die "Version mismatch. Changes says version is '$version', but 'bin/feedgnuplot' says it is '$1'";
       }
diff --git a/bin/feedgnuplot b/bin/feedgnuplot
index 7eda297..3cb66cb 100755
--- a/bin/feedgnuplot
+++ b/bin/feedgnuplot
@@ -15,7 +15,8 @@ use Text::ParseWords; # for shellwords
 use Pod::Usage;
 use Time::Piece;
 
-my $VERSION = 1.44;
+# Makefile.PL assumes this is in ''
+my $VERSION = '1.44';
 
 my %options;
 interpretCommandline();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/feedgnuplot.git



More information about the debian-science-commits mailing list