[Pkg-mozext-commits] [adblock-plus] 09/464: Set internal version number for development builds correctly, didn't match file name before

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:43:57 UTC 2014


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

taffit pushed a commit to branch master
in repository adblock-plus.

commit 534fa9a2b6d530e1e37078c9d53dd33df3ad69e4
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Mon Dec 22 23:13:25 2008 +0100

    Set internal version number for development builds correctly, didn't match file name before
---
 Packager.pm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Packager.pm b/Packager.pm
index 8ac184c..79df7fc 100644
--- a/Packager.pm
+++ b/Packager.pm
@@ -19,7 +19,11 @@ sub readVersion
   open(local *FILE, $versionFile) or die "Could not open version file $versionFile";
   $self->{version} = <FILE>;
   $self->{version} =~ s/[^\w\.]//gs;
-  $self->{version} .= $self->{devbuild} if exists $self->{devbuild};
+  if (exists $self->{devbuild})
+  {
+    $self->{version} .= ".0" while ($self->{version} =~ tr/././ < 2);
+    $self->{version} .= $self->{devbuild};
+  }
   close(FILE);
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list