chiark / gitweb /
update: fix glob to actually match all locales
authorHans-Christoph Steiner <hans@eds.org>
Fri, 14 Apr 2017 22:17:09 +0000 (00:17 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Wed, 19 Apr 2017 08:05:24 +0000 (10:05 +0200)
glob != regexp, [A-Z-.@] means one of those chars is required in that
position, so the glob pattern was requiring a least 3 chars.  Locales are
usually just two lower case letters, e.g. vi, de, ar.

fdroidserver/update.py

index f4480ec12d36a2a0ab1f96e0eb87a60b7ac03c5e..a97a40bf4d7dc573c6d158e69075214800908629 100644 (file)
@@ -693,8 +693,8 @@ def insert_localized_app_metadata(apps):
 
     """
 
-    sourcedirs = glob.glob(os.path.join('build', '[A-Za-z]*', 'fastlane', 'metadata', 'android', '[a-z][a-z][A-Z-.@]*'))
-    sourcedirs += glob.glob(os.path.join('metadata', '[A-Za-z]*', '[a-z][a-z][A-Z-.@]*'))
+    sourcedirs = glob.glob(os.path.join('build', '[A-Za-z]*', 'fastlane', 'metadata', 'android', '[a-z][a-z]*'))
+    sourcedirs += glob.glob(os.path.join('metadata', '[A-Za-z]*', '[a-z][a-z]*'))
 
     for d in sorted(sourcedirs):
         if not os.path.isdir(d):