[Pkg-mozext-commits] [adblock-plus] 409/464: Ignore empty locale directories when packaging Gecko extensions
David Prévot
taffit at moszumanska.debian.org
Tue Jul 22 20:44:39 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 3e5b8b54b98c52277bab6444f1b5f4ed5348d04f
Author: Chakradhar Kasturi <chakradhar.kasturi at gmail.com>
Date: Mon Nov 18 18:05:13 2013 +0100
Ignore empty locale directories when packaging Gecko extensions
---
packagerGecko.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/packagerGecko.py b/packagerGecko.py
index 45c6fdf..f4a9407 100644
--- a/packagerGecko.py
+++ b/packagerGecko.py
@@ -73,7 +73,10 @@ def getIgnoredFiles(params):
def isValidLocale(localesDir, dir, includeIncomplete=False):
if re.search(r'[^\w\-]', dir):
return False
- if not os.path.isdir(os.path.join(localesDir, dir)):
+ curLocaleDir = os.path.join(localesDir, dir)
+ if not os.path.isdir(curLocaleDir):
+ return False
+ if len(os.listdir(curLocaleDir)) == 0:
return False
if not includeIncomplete and os.path.exists(os.path.join(localesDir, dir, '.incomplete')):
return False
--
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