mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-06 01:11:07 +03:00
update: improved logging
the aapt warnings were very verbose, and the other now includes the file name type for screenshots, rather than the filename twice.
This commit is contained in:
parent
5d705452f5
commit
a17b95a860
1 changed files with 1 additions and 3 deletions
|
@ -783,7 +783,7 @@ def insert_localized_app_metadata(apps):
|
||||||
graphics[base] = filename
|
graphics[base] = filename
|
||||||
elif screenshotdir in SCREENSHOT_DIRS:
|
elif screenshotdir in SCREENSHOT_DIRS:
|
||||||
# there can any number of these per locale
|
# there can any number of these per locale
|
||||||
logging.debug('adding ' + base + ':' + f)
|
logging.debug('adding to ' + screenshotdir + ': ' + f)
|
||||||
if screenshotdir not in graphics:
|
if screenshotdir not in graphics:
|
||||||
graphics[screenshotdir] = []
|
graphics[screenshotdir] = []
|
||||||
graphics[screenshotdir].append(filename)
|
graphics[screenshotdir].append(filename)
|
||||||
|
@ -1126,10 +1126,8 @@ def scan_apk(apkcache, apkfilename, repodir, knownapks, use_date_from_apk):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if common.set_command_in_config('aapt'):
|
if common.set_command_in_config('aapt'):
|
||||||
logging.warning("Using AAPT for metadata")
|
|
||||||
scan_apk_aapt(apk, apkfile)
|
scan_apk_aapt(apk, apkfile)
|
||||||
else:
|
else:
|
||||||
logging.warning("Using androguard for metadata")
|
|
||||||
scan_apk_androguard(apk, apkfile)
|
scan_apk_androguard(apk, apkfile)
|
||||||
except BuildException:
|
except BuildException:
|
||||||
return True, None, False
|
return True, None, False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue