mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-07 07:50:28 +03:00
Improve checkupdates further, Auto Name works with gradle
This commit is contained in:
parent
1fcb56b946
commit
0ad09f6481
2 changed files with 32 additions and 31 deletions
|
|
@ -304,15 +304,18 @@ def main():
|
|||
vcs = common.getvcs(app["Repo Type"], app["Repo"], app_dir, sdk_path)
|
||||
vcs.gotorevision(None)
|
||||
|
||||
flavour = None
|
||||
if len(app['builds']) > 0:
|
||||
if 'subdir' in app['builds'][-1]:
|
||||
app_dir = os.path.join(app_dir, app['builds'][-1]['subdir'])
|
||||
if 'gradle' in app['builds'][-1]:
|
||||
flavour = app['builds'][-1]['gradle']
|
||||
|
||||
new_name = common.fetch_real_name(app_dir, flavour)
|
||||
if new_name != app['Auto Name']:
|
||||
app['Auto Name'] = new_name
|
||||
writeit = True
|
||||
|
||||
#new_name = common.fetch_real_name(app_dir)
|
||||
#if new_name != app['Auto Name']:
|
||||
#app['Auto Name'] = new_name
|
||||
#if not writeit:
|
||||
#writeit = True
|
||||
except Exception:
|
||||
msg = "Auto Name failed for %s due to exception: %s" % (app['id'], traceback.format_exc())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue