Don't copy per version anti features to all versions

make_v0() modified the apps data structure to copy an anti feature for a
specific version to all versions resulting in index-v1 and -v2 to
contain wrong anti feature annotations. This patch fixes this and adds a
test that the data structure is no longer modified.

The bug shadowed bugs in the AF implementation of -v1 and -v2 resulting
in not coping the version specific data. This is corrected as well.
This is also tested now.

For -v2 the AF dict is now sorted to make the result reproducible.

Finally The NoSourceSince AF was added as a per version and overall AF
in -v1 and is now only applied as an overall AF and the test is updated
accordingly.
This commit is contained in:
Jochen Sprickerhof 2023-03-31 13:18:37 +02:00 committed by Hans-Christoph Steiner
parent 484f289919
commit 889b8cb372
10 changed files with 63 additions and 67 deletions

View file

@ -3,9 +3,9 @@
"version": 20002,
"index": {
"name": "/index-v2.json",
"sha256": "da1d651eb7bbc27d2334819c591baa5afb70b01397849de515dade624a96de6d",
"sha256": "2f92210a7c7f2f3d855006979ebce4dda203de5ae6596a783aa531f8086e2694",
"size": 32946,
"numPackages": 10
},
"diffs": {}
}
}