mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 15:32:30 +03:00
Extra debug logging for autoname gathering
This commit is contained in:
parent
44e9ee436b
commit
e642561676
2 changed files with 7 additions and 1 deletions
|
@ -413,7 +413,10 @@ def main():
|
||||||
if 'gradle' in app['builds'][-1]:
|
if 'gradle' in app['builds'][-1]:
|
||||||
flavour = app['builds'][-1]['gradle']
|
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)
|
new_name = common.fetch_real_name(app_dir, flavour)
|
||||||
|
logging.debug("...got autoname '" + new_name + "'")
|
||||||
if new_name != app['Auto Name']:
|
if new_name != app['Auto Name']:
|
||||||
app['Auto Name'] = new_name
|
app['Auto Name'] = new_name
|
||||||
if not commitmsg:
|
if not commitmsg:
|
||||||
|
|
|
@ -632,6 +632,7 @@ def fetch_real_name(app_dir, flavour):
|
||||||
for f in manifest_paths(app_dir, flavour):
|
for f in manifest_paths(app_dir, flavour):
|
||||||
if not has_extension(f, 'xml'):
|
if not has_extension(f, 'xml'):
|
||||||
continue
|
continue
|
||||||
|
logging.debug("fetch_real_name: Checking manifest at " + f)
|
||||||
for line in file(f):
|
for line in file(f):
|
||||||
if not app_found:
|
if not app_found:
|
||||||
if app_search(line):
|
if app_search(line):
|
||||||
|
@ -639,7 +640,9 @@ def fetch_real_name(app_dir, flavour):
|
||||||
if app_found:
|
if app_found:
|
||||||
matches = name_search(line)
|
matches = name_search(line)
|
||||||
if matches:
|
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 ''
|
return ''
|
||||||
|
|
||||||
# Retrieve the version name
|
# Retrieve the version name
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue