[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 145/483: Make sure dev build version numbers always consist of three digit groups

David Prévot taffit at moszumanska.debian.org
Thu Jan 22 21:41:35 UTC 2015


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

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

commit a7d3ef76c1ed5193a4a193efd6543bf7bc405e97
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Wed Dec 3 21:59:17 2008 +0100

    Make sure dev build version numbers always consist of three digit groups
---
 make_devbuild.pl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/make_devbuild.pl b/make_devbuild.pl
index a0190e3..243d337 100644
--- a/make_devbuild.pl
+++ b/make_devbuild.pl
@@ -34,6 +34,10 @@ my $version = <VERSION>;
 $version =~ s/[^\w\.]//gs;
 close(VERSION);
 
+# Pad the version with zeroes to get version comparisons
+# right (1.2+ > 1.2.1 but 1.2.0+ < 1.2.1)
+$version .= ".0" while ($version =~ tr/././ < 2);
+
 my ($sec, $min, $hour, $day, $mon, $year) = localtime;
 my $build = sprintf("%04i%02i%02i%02i", $year+1900, $mon+1, $day, $hour);
 

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



More information about the Pkg-mozext-commits mailing list