mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-13 02:30:11 +01:00
Remove apks with no metadata (unless told to create it)
This commit is contained in:
parent
28773ea7de
commit
78bee1990c
@ -994,8 +994,12 @@ def main():
|
||||
f.close()
|
||||
logging.info("Generated skeleton metadata for " + apk['id'])
|
||||
else:
|
||||
logging.warn(apk['apkname'] + " (" + apk['id'] + ") has no metadata")
|
||||
logging.info(" " + apk['name'] + " - " + apk['version'])
|
||||
logging.warn(apk['apkname'] + " (" + apk['id'] + ") has no metadata - removing")
|
||||
rmf = os.path.join(repodirs[0], apk['apkname'])
|
||||
if not os.path.exists(rmf):
|
||||
logging.error("Could not find {0} to remove it".format(rmf))
|
||||
else:
|
||||
os.remove(rmf)
|
||||
|
||||
if len(repodirs) > 1:
|
||||
archive_old_apks(apps, apks, archapks, repodirs[0], repodirs[1], config['archive_older'])
|
||||
|
Loading…
Reference in New Issue
Block a user