diff options
| author | Julian Andres Klode <jak@debian.org> | 2023-08-02 12:29:02 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2023-08-02 12:29:02 +0000 |
| commit | 92981f610602729a94c07dcd335d114052d9cba9 (patch) | |
| tree | e3149bc06a28210a35fd1a122709e277bd8573cf /test/integration/test-same-version-but-different | |
| parent | c8cb97f5faaa1ed9a358e7a0e4c045c3f28f3799 (diff) | |
| parent | 5576e7f76da73f3f5217f90d816cc19b6c0a5a77 (diff) | |
Merge branch 'same-version-sha256' into 'main'
Try to compare SHA256 to determine same version
See merge request apt-team/apt!305
Diffstat (limited to 'test/integration/test-same-version-but-different')
| -rwxr-xr-x | test/integration/test-same-version-but-different | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/test-same-version-but-different b/test/integration/test-same-version-but-different index df6753a43..595a66fb6 100755 --- a/test/integration/test-same-version-but-different +++ b/test/integration/test-same-version-but-different @@ -30,6 +30,9 @@ insertpackage 'testing' 'diff-size' 'all' '1' 'Size: 42' insertpackage 'unstable' 'diff-instsize' 'all' '1' 'Installed-Size: 21' insertpackage 'testing' 'diff-instsize' 'all' '1' 'Installed-Size: 42' +insertpackage 'unstable' 'diff-sha256' 'all' '1' 'SHA256: 0000000000000000000000000000000000000000000000000000000000000000' +insertpackage 'testing' 'diff-sha256' 'all' '1' 'SHA256: 0000000000000000000000000000000000000000000000000000000000000001' + setupaptarchive APTARCHIVE="$(readlink -f ./aptarchive)" @@ -96,3 +99,11 @@ testsuccessequal "diff-instsize: 500 file:${APTARCHIVE} testing/main all Packages 1 500 500 file:${APTARCHIVE} unstable/main all Packages" apt policy diff-instsize +testsuccessequal "diff-sha256: + Installed: (none) + Candidate: 1 + Version table: + 1 500 + 500 file:${APTARCHIVE} testing/main all Packages + 1 500 + 500 file:${APTARCHIVE} unstable/main all Packages" apt policy diff-sha256 |
