Merge branch 'sourcegone' into 'master'

new AntiFeature: SourceGone (automatically set at NoSourceSince). closes #508

Closes #508

See merge request fdroid/fdroidserver!529
This commit is contained in:
Hans-Christoph Steiner 2018-07-10 12:36:49 +00:00
commit 90e3a67cef
1 changed files with 4 additions and 1 deletions

View File

@ -429,7 +429,7 @@ valuetypes = {
["ArchivePolicy"]),
FieldValidator("Anti-Feature",
r'^(Ads|Tracking|NonFreeNet|NonFreeDep|NonFreeAdd|UpstreamNonFree|NonFreeAssets|KnownVuln|ApplicationDebuggable)$',
r'^(Ads|Tracking|NonFreeNet|NonFreeDep|NonFreeAdd|UpstreamNonFree|NonFreeAssets|KnownVuln|ApplicationDebuggable|NoSourceSince)$',
["AntiFeatures"]),
FieldValidator("Auto Update Mode",
@ -993,6 +993,9 @@ def parse_metadata(metadatapath, check_vcs=False, refresh=True):
post_metadata_parse(app)
if app.NoSourceSince:
app.AntiFeatures.append('NoSourceSince')
if not app.id:
if app.builds:
build = app.builds[-1]