mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-05-14 10:54:29 -04:00
update: take build subdir into account when looking for triple-t data
Implemented as a fallback solution when parsing settings.gradle and globbing the build dir with "'*', 'src', '*', 'play'" did not yield results. Before, the logic would not find triple-t metadata in projects where settings.gradle is in a subdirectory or 'src' is found at a directory depth != 2. Closes fdroid/fdroiddata#2295
This commit is contained in:
committed by
Hans-Christoph Steiner
parent
dbf80ad771
commit
553daf8552
@@ -1058,6 +1058,8 @@ def copy_triple_t_store_metadata(apps):
|
||||
gradle_subdirs.add(p)
|
||||
if not gradle_subdirs:
|
||||
gradle_subdirs.update(glob.glob(os.path.join('build', packageName, '*', 'src', '*', 'play')))
|
||||
if not gradle_subdirs and len(app.get('Builds', [])) and app.get('Builds', [])[-1].subdir:
|
||||
gradle_subdirs.update(glob.glob(os.path.join('build', packageName, app.get('Builds', [])[-1].subdir, 'src', '*', 'play')))
|
||||
|
||||
for d in gradle_subdirs:
|
||||
logging.debug('Triple-T Gradle Play Publisher: ' + d)
|
||||
|
||||
Reference in New Issue
Block a user