[Pkg-mozext-commits] [adblock-plus] 203/464: Package up any JS or XML files in the root directory

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:17 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 bdfe57d20cf627510df519c24326c440c1f7b1d5
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Wed Jan 18 18:34:14 2012 +0100

    Package up any JS or XML files in the root directory
---
 packager.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/packager.py b/packager.py
index ce14e0c..68d62aa 100644
--- a/packager.py
+++ b/packager.py
@@ -48,7 +48,11 @@ def getChromeSubdirs(baseDir, locales):
   return result
 
 def getXPIFiles(baseDir):
-  return [os.path.join(baseDir, file) for file in ('components', 'modules', 'defaults', 'bootstrap.js', 'chrome.manifest', 'icon.png', 'icon64.png')]
+  for file in ('components', 'modules', 'defaults', 'chrome.manifest', 'icon.png', 'icon64.png'):
+    yield os.path.join(baseDir, file)
+  for file in os.listdir(baseDir):
+    if file.endswith('.js') or file.endswith('.xml'):
+      yield os.path.join(baseDir, file)
 
 def getTestEnvFiles(baseDir):
   return [os.path.join(baseDir, file) for file in ('components', 'defaults', 'bootstrap.js', 'chrome.manifest', 'icon.png', 'icon64.png')]

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