[Pkg-mozext-commits] [adblock-plus] 189/464: Fixed test environment for extensions without an inner JAR

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:16 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 21a9ded48d1cfdbfdbc926865da50fb5de5be5dd
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Mon Jan 2 10:54:11 2012 +0100

    Fixed test environment for extensions without an inner JAR
---
 packager.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/packager.py b/packager.py
index faaf3c6..dc684c1 100644
--- a/packager.py
+++ b/packager.py
@@ -335,6 +335,7 @@ def setupTestEnvironment(baseDir, profileDirs):
       import urllib
       baseURL = 'file://' + urllib.quote(os.path.abspath(baseDir))
     files['chrome.manifest'] = re.sub(r'\bjar:chrome/\w+\.jar!', '%s/chrome' % baseURL, files['chrome.manifest'])
+    files['chrome.manifest'] = re.sub(r'(\s)chrome/', r'\1%s/chrome/' % baseURL, files['chrome.manifest'])
     files['chrome.manifest'] = re.sub(r'\b(resource\s+\S+\s+)', r'\1%s/' % baseURL, files['chrome.manifest'])
     files['chrome.manifest'] = re.sub(r'\b(content\s+\S+\s+)(\w+/)', r'\1%s/\2' % baseURL, files['chrome.manifest'])
     if os.path.exists(os.path.join(baseDir, 'mochitest')):

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