mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-01-25 07:47:51 -05:00
Remove apks with no metadata (unless told to create it)
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user