mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-05 17:01:06 +03:00
update: fix glob to actually match all locales
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.
This commit is contained in:
parent
cb49f57c06
commit
fd21d68bc1
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue