mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-07 01:41:06 +03:00
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:
parent
6ca09e1bb2
commit
b03c4a7353
5 changed files with 20 additions and 4 deletions
|
@ -993,9 +993,6 @@ 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]
|
||||||
|
|
|
@ -1652,6 +1652,9 @@ def apply_info_from_latest_apk(apps, apks):
|
||||||
bestver = apk['versionCode']
|
bestver = apk['versionCode']
|
||||||
bestapk = apk
|
bestapk = apk
|
||||||
|
|
||||||
|
if app.NoSourceSince:
|
||||||
|
apk['antiFeatures'].add('NoSourceSince')
|
||||||
|
|
||||||
if 'added' in apk:
|
if 'added' in apk:
|
||||||
if not app.added or apk['added'] < app.added:
|
if not app.added or apk['added'] < app.added:
|
||||||
app.added = apk['added']
|
app.added = apk['added']
|
||||||
|
|
|
@ -28,11 +28,13 @@ Build:1.4,5
|
||||||
|
|
||||||
Build:1.5,6
|
Build:1.5,6
|
||||||
commit=v1.5
|
commit=v1.5
|
||||||
gradle=yes
|
|
||||||
sudo=echo 'this is just a test'
|
sudo=echo 'this is just a test'
|
||||||
|
gradle=yes
|
||||||
|
|
||||||
Archive Policy:4 versions
|
Archive Policy:4 versions
|
||||||
Auto Update Mode:Version v%v
|
Auto Update Mode:Version v%v
|
||||||
Update Check Mode:Tags
|
Update Check Mode:Tags
|
||||||
Current Version:1.5
|
Current Version:1.5
|
||||||
Current Version Code:6
|
Current Version Code:6
|
||||||
|
|
||||||
|
No Source Since:1.5
|
||||||
|
|
|
@ -127,6 +127,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"antiFeatures": [
|
||||||
|
"NoSourceSince"
|
||||||
|
],
|
||||||
"categories": [
|
"categories": [
|
||||||
"Time"
|
"Time"
|
||||||
],
|
],
|
||||||
|
@ -180,6 +183,9 @@
|
||||||
"com.politedroid": [
|
"com.politedroid": [
|
||||||
{
|
{
|
||||||
"added": 1498176000000,
|
"added": 1498176000000,
|
||||||
|
"antiFeatures": [
|
||||||
|
"NoSourceSince"
|
||||||
|
],
|
||||||
"apkName": "com.politedroid_6.apk",
|
"apkName": "com.politedroid_6.apk",
|
||||||
"hash": "70c2f776a2bac38a58a7d521f96ee0414c6f0fb1de973c3ca8b10862a009247d",
|
"hash": "70c2f776a2bac38a58a7d521f96ee0414c6f0fb1de973c3ca8b10862a009247d",
|
||||||
"hashType": "sha256",
|
"hashType": "sha256",
|
||||||
|
@ -204,6 +210,9 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"added": 1498176000000,
|
"added": 1498176000000,
|
||||||
|
"antiFeatures": [
|
||||||
|
"NoSourceSince"
|
||||||
|
],
|
||||||
"apkName": "com.politedroid_5.apk",
|
"apkName": "com.politedroid_5.apk",
|
||||||
"hash": "5bdbfa071cca4b8d05ced41d6b28763595d6e8096cca5bbf0f9253c9a2622e5d",
|
"hash": "5bdbfa071cca4b8d05ced41d6b28763595d6e8096cca5bbf0f9253c9a2622e5d",
|
||||||
"hashType": "sha256",
|
"hashType": "sha256",
|
||||||
|
@ -228,6 +237,9 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"added": 1498176000000,
|
"added": 1498176000000,
|
||||||
|
"antiFeatures": [
|
||||||
|
"NoSourceSince"
|
||||||
|
],
|
||||||
"apkName": "com.politedroid_4.apk",
|
"apkName": "com.politedroid_4.apk",
|
||||||
"hash": "c809bdff83715fbf919f3840ee09869b038e209378b906e135ee40d3f0e1f075",
|
"hash": "c809bdff83715fbf919f3840ee09869b038e209378b906e135ee40d3f0e1f075",
|
||||||
"hashType": "sha256",
|
"hashType": "sha256",
|
||||||
|
@ -266,6 +278,7 @@
|
||||||
"added": 1498176000000,
|
"added": 1498176000000,
|
||||||
"antiFeatures": [
|
"antiFeatures": [
|
||||||
"KnownVuln",
|
"KnownVuln",
|
||||||
|
"NoSourceSince",
|
||||||
"NonFreeAssets",
|
"NonFreeAssets",
|
||||||
"UpstreamNonFree"
|
"UpstreamNonFree"
|
||||||
],
|
],
|
||||||
|
|
|
@ -237,6 +237,7 @@
|
||||||
<tracker>https://github.com/miguelvps/PoliteDroid/issues</tracker>
|
<tracker>https://github.com/miguelvps/PoliteDroid/issues</tracker>
|
||||||
<marketversion>1.5</marketversion>
|
<marketversion>1.5</marketversion>
|
||||||
<marketvercode>6</marketvercode>
|
<marketvercode>6</marketvercode>
|
||||||
|
<antifeatures>NoSourceSince</antifeatures>
|
||||||
<package>
|
<package>
|
||||||
<version>1.5</version>
|
<version>1.5</version>
|
||||||
<versioncode>6</versioncode>
|
<versioncode>6</versioncode>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue