mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-20 13:50:12 +01:00
copy_triple_t_store_metadata(): handle subdir + flavor
This commit is contained in:
parent
311e6a14f1
commit
c2ed538ea4
@ -1044,7 +1044,13 @@ def copy_triple_t_store_metadata(apps):
|
|||||||
builds = app.get('Builds', [])
|
builds = app.get('Builds', [])
|
||||||
gradle_subdirs = set()
|
gradle_subdirs = set()
|
||||||
if builds and builds[-1].subdir:
|
if builds and builds[-1].subdir:
|
||||||
gradle_subdirs.update(glob.glob(os.path.join('build', packageName, builds[-1].subdir, 'src', '*', 'play')))
|
for flavor in builds[-1].gradle:
|
||||||
|
if flavor not in ('yes', 'no', True, False):
|
||||||
|
p = os.path.join('build', packageName, builds[-1].subdir, 'src', flavor, 'play')
|
||||||
|
if os.path.exists(p):
|
||||||
|
gradle_subdirs.add(p)
|
||||||
|
if not gradle_subdirs:
|
||||||
|
gradle_subdirs.update(glob.glob(os.path.join('build', packageName, builds[-1].subdir, 'src', '*', 'play')))
|
||||||
if not gradle_subdirs:
|
if not gradle_subdirs:
|
||||||
gradle_subdirs.update(glob.glob(os.path.join('build', packageName, builds[-1].subdir, '*', 'src', '*', 'play')))
|
gradle_subdirs.update(glob.glob(os.path.join('build', packageName, builds[-1].subdir, '*', 'src', '*', 'play')))
|
||||||
if not gradle_subdirs:
|
if not gradle_subdirs:
|
||||||
|
Loading…
Reference in New Issue
Block a user