mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 07:10:12 +02:00
Merge branch 'fix' into 'master'
fix #320 due to unintentionally reusing the same variable name Closes #320 See merge request !286
This commit is contained in:
commit
e1d316a4bc
@ -706,10 +706,10 @@ def insert_localized_app_metadata(apps):
|
|||||||
sourcedirs += glob.glob(os.path.join('build', '[A-Za-z]*', 'metadata', '[a-z][a-z]*'))
|
sourcedirs += glob.glob(os.path.join('build', '[A-Za-z]*', 'metadata', '[a-z][a-z]*'))
|
||||||
sourcedirs += glob.glob(os.path.join('metadata', '[A-Za-z]*', '[a-z][a-z]*'))
|
sourcedirs += glob.glob(os.path.join('metadata', '[A-Za-z]*', '[a-z][a-z]*'))
|
||||||
|
|
||||||
for d in sorted(sourcedirs):
|
for srcd in sorted(sourcedirs):
|
||||||
if not os.path.isdir(d):
|
if not os.path.isdir(srcd):
|
||||||
continue
|
continue
|
||||||
for root, dirs, files in os.walk(d):
|
for root, dirs, files in os.walk(srcd):
|
||||||
segments = root.split('/')
|
segments = root.split('/')
|
||||||
packageName = segments[1]
|
packageName = segments[1]
|
||||||
if packageName not in apps:
|
if packageName not in apps:
|
||||||
|
Loading…
Reference in New Issue
Block a user