NoSourceSince Anti-Feature should only be added to index

Before, it was being added to the metadata, so that rewritemeta would
output it.

fdroid/fdroidserver!529
#508
This commit is contained in:
Hans-Christoph Steiner 2018-07-10 23:31:22 +02:00
parent 6ca09e1bb2
commit b03c4a7353
5 changed files with 20 additions and 4 deletions

View file

@ -1652,6 +1652,9 @@ def apply_info_from_latest_apk(apps, apks):
bestver = apk['versionCode']
bestapk = apk
if app.NoSourceSince:
apk['antiFeatures'].add('NoSourceSince')
if 'added' in apk:
if not app.added or apk['added'] < app.added:
app.added = apk['added']