mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 02:50:12 +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()
|
f.close()
|
||||||
logging.info("Generated skeleton metadata for " + apk['id'])
|
logging.info("Generated skeleton metadata for " + apk['id'])
|
||||||
else:
|
else:
|
||||||
logging.warn(apk['apkname'] + " (" + apk['id'] + ") has no metadata")
|
logging.warn(apk['apkname'] + " (" + apk['id'] + ") has no metadata - removing")
|
||||||
logging.info(" " + apk['name'] + " - " + apk['version'])
|
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:
|
if len(repodirs) > 1:
|
||||||
archive_old_apks(apps, apks, archapks, repodirs[0], repodirs[1], config['archive_older'])
|
archive_old_apks(apps, apks, archapks, repodirs[0], repodirs[1], config['archive_older'])
|
||||||
|
Loading…
Reference in New Issue
Block a user