[Pkg-mozext-commits] [adblock-plus] 07/24: Issue 140 - removed timeline.js support.

David Prévot taffit at moszumanska.debian.org
Mon Oct 20 02:15:22 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 3954ea1332517bbb62f1f717013299ef5ef38a40
Author: Jarek 'jarekps' Smiejczak <jot at smiejczak.net>
Date:   Tue Sep 16 23:27:42 2014 +0200

    Issue 140 - removed timeline.js support.
    
    --HG--
    extra : histedit_source : c89594363163514fe52fd033ad80369ae7bfeb9c
---
 packagerGecko.py | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/packagerGecko.py b/packagerGecko.py
index bcf25f1..efb4ef7 100644
--- a/packagerGecko.py
+++ b/packagerGecko.py
@@ -54,10 +54,7 @@ def getPackageFiles(params):
   return result
 
 def getIgnoredFiles(params):
-  result = set(('.incomplete', 'meta.properties',))
-  if params['releaseBuild']:
-    result.add('timeline.js')
-  return result
+  return {'.incomplete', 'meta.properties'}
 
 def isValidLocale(localesDir, dir, includeIncomplete=False):
   if re.search(r'[^\w\-]', dir):
@@ -84,13 +81,6 @@ def processFile(path, data, params):
     replacement = '\n'.join(map(lambda locale: r'\1%s\2%s\3' % (locale, locale), params['locales']))
     data = re.sub(localesRegExp, replacement, data)
 
-  if params['releaseBuild'] and path.endswith('.js'):
-    # Remove timeline calls from release builds
-    timelineRegExp1 = re.compile(r'^.*\b[tT]imeLine\.(\w+)\(.*', re.M)
-    timelineRegExp2 = re.compile(r'^.*\brequire\(\"timeline\"\).*', re.M)
-    data = re.sub(timelineRegExp1, '', data)
-    data = re.sub(timelineRegExp2, '', data)
-
   return data
 
 def readLocaleMetadata(baseDir, locales):

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