[Pkg-mozext-commits] [adblock-plus] 127/464: Allow extensions to specify a non-default update URL for release builds

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:10 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 c37fd206063d324fa164a4fad524157d1faa8b82
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Wed Feb 16 13:24:27 2011 +0100

    Allow extensions to specify a non-default update URL for release builds
---
 Packager.pm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/Packager.pm b/Packager.pm
index 8d88e7e..dc4a23e 100644
--- a/Packager.pm
+++ b/Packager.pm
@@ -380,10 +380,20 @@ sub writeManifest
 \t\t<em:type>2</em:type>
 EOT
 
+  my $updateURL;
   if ($self->{devbuild})
   {
+    $updateURL = "https://adblockplus.org/devbuilds/$self->{settings}{general}{basename}/update.rdf";
+  }
+  elsif (exists($self->{settings}{general}{updateURL}))
+  {
+    $updateURL = $self->{settings}{general}{updateURL};
+  }
+  if (defined $updateURL)
+  {
+    $updateURL = $self->encodeXML($updateURL . '?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%&currentAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%');
     print FILE <<"EOT";
-\t\t<em:updateURL><![CDATA[https://adblockplus.org/devbuilds/$self->{settings}{general}{basename}/update.rdf?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=%APP_LOCALE%&currentAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%]]></em:updateURL>
+\t\t<em:updateURL>$updateURL</em:updateURL>
 EOT
   }
 

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