[Pkg-mozext-commits] [adblock-plus] 364/464: Chrome: Added dummy processFile function to allow it to be overridden if necessary

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:34 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 2bab67da790c546036f4a40a20ffc0a78a265d3a
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Fri Jan 25 14:37:10 2013 +0100

    Chrome: Added dummy processFile function to allow it to be overridden if necessary
---
 packagerChrome.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/packagerChrome.py b/packagerChrome.py
index 97548aa..66bf840 100644
--- a/packagerChrome.py
+++ b/packagerChrome.py
@@ -44,6 +44,11 @@ def getPackageFiles(params):
       result.add(file)
   return result
 
+def processFile(path, data, params):
+  # We don't change anything yet, this function currently only exists here so
+  # that it can be overridden if necessary.
+  return data
+
 def createManifest(params):
   template = getTemplate('manifest.json.tmpl')
   templateData = dict(params)
@@ -269,7 +274,8 @@ def createBuild(baseDir, outFile=None, buildNum=None, releaseBuild=False, keyFil
     'metadata': metadata,
   }
 
-  files = Files(getPackageFiles(params), getIgnoredFiles(params))
+  files = Files(getPackageFiles(params), getIgnoredFiles(params),
+                process=lambda path, data: processFile(path, data, params))
   files['manifest.json'] = createManifest(params)
   if metadata.has_section('mapping'):
     files.readMappedFiles(metadata.items('mapping'))

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