mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-03-23 01:14:24 -04:00
Extra debug logging for autoname gathering
This commit is contained in:
@@ -413,7 +413,10 @@ def main():
|
||||
if 'gradle' in app['builds'][-1]:
|
||||
flavour = app['builds'][-1]['gradle']
|
||||
|
||||
logging.debug("...fetch auto name from " + app_dir +
|
||||
((" (flavour:" + flavour) if flavour else ""))
|
||||
new_name = common.fetch_real_name(app_dir, flavour)
|
||||
logging.debug("...got autoname '" + new_name + "'")
|
||||
if new_name != app['Auto Name']:
|
||||
app['Auto Name'] = new_name
|
||||
if not commitmsg:
|
||||
|
||||
@@ -632,6 +632,7 @@ def fetch_real_name(app_dir, flavour):
|
||||
for f in manifest_paths(app_dir, flavour):
|
||||
if not has_extension(f, 'xml'):
|
||||
continue
|
||||
logging.debug("fetch_real_name: Checking manifest at " + f)
|
||||
for line in file(f):
|
||||
if not app_found:
|
||||
if app_search(line):
|
||||
@@ -639,7 +640,9 @@ def fetch_real_name(app_dir, flavour):
|
||||
if app_found:
|
||||
matches = name_search(line)
|
||||
if matches:
|
||||
return retrieve_string(app_dir, matches.group(1)).strip()
|
||||
stringname = matches.group(1)
|
||||
logging.debug("fetch_real_name: using string " + stringname)
|
||||
return retrieve_string(app_dir, stringname).strip()
|
||||
return ''
|
||||
|
||||
# Retrieve the version name
|
||||
|
||||
Reference in New Issue
Block a user