mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03: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:
parent
dbf80ad771
commit
553daf8552
1 changed files with 2 additions and 0 deletions
|
|
@ -1058,6 +1058,8 @@ def copy_triple_t_store_metadata(apps):
|
||||||
gradle_subdirs.add(p)
|
gradle_subdirs.add(p)
|
||||||
if not gradle_subdirs:
|
if not gradle_subdirs:
|
||||||
gradle_subdirs.update(glob.glob(os.path.join('build', packageName, '*', 'src', '*', 'play')))
|
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:
|
for d in gradle_subdirs:
|
||||||
logging.debug('Triple-T Gradle Play Publisher: ' + d)
|
logging.debug('Triple-T Gradle Play Publisher: ' + d)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue