1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 11:00:10 +01:00

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

This commit is contained in:
Izzy 2018-07-10 12:36:49 +00:00 committed by Hans-Christoph Steiner
parent 4f7a992214
commit 5d8e1bde4f

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]