mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Fix pylint warnings
This commit is contained in:
parent
ff44488a42
commit
a872d8688d
6 changed files with 12 additions and 2 deletions
|
|
@ -2177,10 +2177,11 @@ def main():
|
|||
apks += files
|
||||
appid_has_apks = set()
|
||||
appid_has_repo_files = set()
|
||||
remove_apks = []
|
||||
for apk in apks:
|
||||
to_remove = get_apks_without_allowed_signatures(apps.get(apk['packageName']), apk)
|
||||
if to_remove:
|
||||
apks.remove(apk)
|
||||
remove_apks.append(apk)
|
||||
logging.warning(
|
||||
_('"{path}" is signed by a key that is not allowed:').format(
|
||||
path=to_remove
|
||||
|
|
@ -2217,6 +2218,9 @@ def main():
|
|||
else:
|
||||
logging.warning(msg + '\n\t' + _('Use `fdroid update -c` to create it.'))
|
||||
|
||||
for apk in remove_apks:
|
||||
apks.remove(apk)
|
||||
|
||||
mismatch_errors = ''
|
||||
for appid in appid_has_apks:
|
||||
if appid in appid_has_repo_files:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue