mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-09 00:40:11 +01:00
Only set Auto Name if one isn't set already
This commit is contained in:
parent
dffaaccbc4
commit
5b868c8a4c
@ -2,7 +2,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
# checkupdates.py - part of the FDroid server tools
|
# checkupdates.py - part of the FDroid server tools
|
||||||
# Copyright (C) 2010-13, Ciaran Gultnieks, ciaran@ciarang.com
|
# Copyright (C) 2010-2015, Ciaran Gultnieks, ciaran@ciarang.com
|
||||||
# Copyright (C) 2013-2014 Daniel Martí <mvdan@mvdan.cc>
|
# Copyright (C) 2013-2014 Daniel Martí <mvdan@mvdan.cc>
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
@ -353,12 +353,12 @@ def fetch_autoname(app, tag):
|
|||||||
if app['builds'][-1]['gradle']:
|
if app['builds'][-1]['gradle']:
|
||||||
flavours = app['builds'][-1]['gradle']
|
flavours = app['builds'][-1]['gradle']
|
||||||
|
|
||||||
|
if not app['Auto Name']:
|
||||||
logging.debug("...fetch auto name from " + app_dir)
|
logging.debug("...fetch auto name from " + app_dir)
|
||||||
new_name = common.fetch_real_name(app_dir, flavours)
|
new_name = common.fetch_real_name(app_dir, flavours)
|
||||||
commitmsg = None
|
commitmsg = None
|
||||||
if new_name:
|
if new_name:
|
||||||
logging.debug("...got autoname '" + new_name + "'")
|
logging.debug("...got autoname '" + new_name + "'")
|
||||||
if new_name != app['Auto Name']:
|
|
||||||
app['Auto Name'] = new_name
|
app['Auto Name'] = new_name
|
||||||
if not commitmsg:
|
if not commitmsg:
|
||||||
commitmsg = "Set autoname of {0}".format(common.getappname(app))
|
commitmsg = "Set autoname of {0}".format(common.getappname(app))
|
||||||
|
Loading…
Reference in New Issue
Block a user