[Pkg-mozext-commits] [adblock-plus] 41/464: Allow builds to be signed in sign.pl script is present
David Prévot
taffit at moszumanska.debian.org
Tue Jul 22 20:44:00 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 607b22d90e3d232192df723365eed650653d74b2
Author: Wladimir Palant <trev at adblockplus.org>
Date: Sat Jul 4 20:19:01 2009 +0200
Allow builds to be signed in sign.pl script is present
--HG--
extra : rebase_source : 9f3ab04d1ac4ddb3bc71ef3a7cf95fa419ea65ce
---
Packager.pm | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/Packager.pm b/Packager.pm
index c50bd85..349f94b 100644
--- a/Packager.pm
+++ b/Packager.pm
@@ -415,9 +415,16 @@ sub makeXPI
}
}
- chdir('tmp');
- print `zip -rX9 ../temp_xpi_file.xpi @files`;
- chdir('..');
+ if (-f 'sign.pl')
+ {
+ system($^X, 'sign.pl', 'tmp', 'temp_xpi_file.xpi');
+ }
+ else
+ {
+ chdir('tmp');
+ print `zip -rDX ../temp_xpi_file.xpi @files`;
+ chdir('..');
+ }
$self->fixZipPermissions("temp_xpi_file.xpi") if $^O =~ /Win32/i;
--
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