mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
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:
commit
90e3a67cef
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue