mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 19:10:11 +01:00
new AntiFeature: SourceGone (automatically set at NoSourceSince). closes #508
This commit is contained in:
parent
4f7a992214
commit
5d8e1bde4f
@ -429,7 +429,7 @@ valuetypes = {
|
|||||||
["ArchivePolicy"]),
|
["ArchivePolicy"]),
|
||||||
|
|
||||||
FieldValidator("Anti-Feature",
|
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"]),
|
["AntiFeatures"]),
|
||||||
|
|
||||||
FieldValidator("Auto Update Mode",
|
FieldValidator("Auto Update Mode",
|
||||||
@ -993,6 +993,9 @@ def parse_metadata(metadatapath, check_vcs=False, refresh=True):
|
|||||||
|
|
||||||
post_metadata_parse(app)
|
post_metadata_parse(app)
|
||||||
|
|
||||||
|
if app.NoSourceSince:
|
||||||
|
app.AntiFeatures.append('NoSourceSince')
|
||||||
|
|
||||||
if not app.id:
|
if not app.id:
|
||||||
if app.builds:
|
if app.builds:
|
||||||
build = app.builds[-1]
|
build = app.builds[-1]
|
||||||
|
Loading…
Reference in New Issue
Block a user