[Pkg-mozext-commits] [adblock-plus] 310/464: Moved public suffix list updater to buildtools repository (can be called via build.py now)

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:28 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 cd2ab918ae149f7849f1bcd6c4d64dc4d8df0bc7
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Thu Oct 18 13:05:10 2012 +0200

    Moved public suffix list updater to buildtools repository (can be called via build.py now)
 build.py | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/build.py b/build.py
index 71c6d88..b970c8e 100644
--- a/build.py
+++ b/build.py
@@ -360,6 +360,10 @@ def syncLocales(baseDir, scriptName, opts, args, type):
   import buildtools.localeSyncChrome as localeSync
   localeSync.run(baseDir, sourceDir)
+def updatePSL(baseDir, scriptName, opts, args, type):
+  import buildtools.publicSuffixListUpdater as publicSuffixListUpdater
+  publicSuffixListUpdater.updatePSL(baseDir)
 with addCommand(lambda baseDir, scriptName, opts, args, type: usage(scriptName, type), ('help', '-h', '--help')) as command:
   command.shortDescription = 'Show this message'
@@ -429,7 +433,12 @@ with addCommand(runReleaseAutomation, 'release') as command:
 with addCommand(syncLocales, 'synclocales') as command:
   command.shortDescription = 'Sync locales with a Firefox extension'
   command.description = 'Updates locale files with strings from a Firefox extension corresponding to the entries in [locale_sync] metadata section.'
-  command.params = '<firefox_extension_directory>'
+  command.params = '<firefox_addon_directory>'
+  command.supportedTypes = ('chrome')
+with addCommand(updatePSL, 'updatepsl') as command:
+  command.shortDescription = 'Updates Public Suffix List'
+  command.description = 'Downloads Public Suffix List (see http://publicsuffix.org/) and generates lib/publicSuffixList.js from it.'
   command.supportedTypes = ('chrome')
 def processArgs(baseDir, args, type='gecko'):

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