[Pkg-mozext-commits] [adblock-plus] 118/464: Use numerical repository revision as development build ID instead of current date

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:09 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 c6e7a22f35b5b9ad281d25505adf1f712ba0c867
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Fri Jan 7 23:18:31 2011 +0100

    Use numerical repository revision as development build ID instead of current date
---
 make_babelzilla_build.pl | 4 ++--
 make_devbuild.pl         | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/make_babelzilla_build.pl b/make_babelzilla_build.pl
index 1ca260a..e6434af 100644
--- a/make_babelzilla_build.pl
+++ b/make_babelzilla_build.pl
@@ -14,8 +14,8 @@ sub Packager::fixLocales() {}
 
 my %params = ();
 
-my ($sec, $min, $hour, $day, $mon, $year) = localtime;
-$params{devbuild} = sprintf("%04i%02i%02i", $year+1900, $mon+1, $day);
+$params{devbuild} = `hg id -n`;
+$params{devbuild} =~ s/\D//g;
 
 my $pkg = Packager->new(\%params);
 $pkg->readMetadata('metadata');
diff --git a/make_devbuild.pl b/make_devbuild.pl
index f17ee6a..36baeea 100644
--- a/make_devbuild.pl
+++ b/make_devbuild.pl
@@ -38,8 +38,8 @@ unless ($version =~ /\D$/)
   $version .= "+";
 }
 
-my ($sec, $min, $hour, $day, $mon, $year) = localtime;
-my $build = sprintf("%04i%02i%02i", $year+1900, $mon+1, $day);
+my $build = `hg id -n`;
+$build =~ s/\D//g;
 
 my $locale = (@ARGV ? "-" . join("-", @ARGV) : "");
 @ARGV = ("$baseName-$version.$build$locale.xpi", $build, @ARGV);

-- 
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