1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-19 21:30:10 +01:00

copy_triple_t_store_metadata(): also look in $subdir/*/src/*/play

This commit is contained in:
Felix C. Stegerman 2021-08-04 00:12:17 +02:00
parent 4c4a283ae2
commit ee18afe8dd
No known key found for this signature in database
GPG Key ID: B218FF2C27FC6CC6

View File

@ -1043,6 +1043,8 @@ def copy_triple_t_store_metadata(apps):
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'))) gradle_subdirs.update(glob.glob(os.path.join('build', packageName, builds[-1].subdir, 'src', '*', 'play')))
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:
sg_list = sorted(glob.glob(os.path.join('build', packageName, 'settings.gradle*'))) sg_list = sorted(glob.glob(os.path.join('build', packageName, 'settings.gradle*')))
if sg_list: if sg_list: