1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-08-18 20:30:09 +02:00

Add test for !1370

The bug fixed in !1370 was due to a reuse of the per app anti features
dictionary in the per version one and adding the per version anti
features into it. This was not caught by the test suite as the app
versions are processed from newest to oldest and the test data had only
anti features in the oldest version. This patch adds an anti feature to
a newest version so only those in between should not have it.
This commit is contained in:
Jochen Sprickerhof 2023-06-02 10:06:47 +02:00
parent a1c4f803de
commit 27ea667438
No known key found for this signature in database
GPG Key ID: 5BFFDCC258E69433
6 changed files with 21 additions and 6 deletions

View File

@ -39,6 +39,10 @@ Builds:
sudo: echo 'this is just a test'
gradle:
- yes
antifeatures:
- KnownVuln
- UpstreamNonFree
- NonFreeAssets
ArchivePolicy: 4 versions
AutoUpdateMode: Version v%v

View File

@ -122,7 +122,10 @@ Builds:
versionName: '1.4'
- androidupdate: []
antcommands: []
antifeatures: {}
antifeatures:
KnownVuln: {}
NonFreeAssets: {}
UpstreamNonFree: {}
binary: null
build: ''
buildjni: []

View File

@ -3,7 +3,7 @@
"version": 20002,
"index": {
"name": "/index-v2.json",
"sha256": "f4979b9db840cb51a99e80c20da676ba42b13133dbaa4819673bc43ed2ffc3f3",
"sha256": "ba000a3f5e1935d338f374c50cae529b8ce6d988ab3ed67c7a8cf437502f81ad",
"size": 52481,
"numPackages": 10
},

View File

@ -231,6 +231,11 @@
"com.politedroid": [
{
"added": 1498176000000,
"antiFeatures": [
"KnownVuln",
"NonFreeAssets",
"UpstreamNonFree"
],
"apkName": "com.politedroid_6.apk",
"hash": "70c2f776a2bac38a58a7d521f96ee0414c6f0fb1de973c3ca8b10862a009247d",
"hashType": "sha256",
@ -689,4 +694,4 @@
}
]
}
}
}

View File

@ -568,10 +568,13 @@
]
},
"antiFeatures": {
"KnownVuln": {},
"NoSourceSince": {
"en-US": "1.5"
},
"NonFreeNet": {}
"NonFreeAssets": {},
"NonFreeNet": {},
"UpstreamNonFree": {}
}
},
"5bdbfa071cca4b8d05ced41d6b28763595d6e8096cca5bbf0f9253c9a2622e5d": {
@ -1403,4 +1406,4 @@
}
}
}
}
}

View File

@ -318,7 +318,7 @@ APK is called F-Droid Privileged Extension.</desc>
<tracker>https://github.com/miguelvps/PoliteDroid/issues</tracker>
<marketversion>1.5</marketversion>
<marketvercode>6</marketvercode>
<antifeatures>NoSourceSince,NonFreeNet</antifeatures>
<antifeatures>KnownVuln,NoSourceSince,NonFreeAssets,NonFreeNet,UpstreamNonFree</antifeatures>
<package>
<version>1.5</version>
<versioncode>6</versioncode>