summaryrefslogtreecommitdiff
path: root/test/integration/framework
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2023-08-02 12:29:02 +0000
committerJulian Andres Klode <jak@debian.org>2023-08-02 12:29:02 +0000
commit92981f610602729a94c07dcd335d114052d9cba9 (patch)
treee3149bc06a28210a35fd1a122709e277bd8573cf /test/integration/framework
parentc8cb97f5faaa1ed9a358e7a0e4c045c3f28f3799 (diff)
parent5576e7f76da73f3f5217f90d816cc19b6c0a5a77 (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/framework')
-rw-r--r--test/integration/framework10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/integration/framework b/test/integration/framework
index 264c228d0..3bf8a3fec 100644
--- a/test/integration/framework
+++ b/test/integration/framework
@@ -1022,9 +1022,13 @@ insertpackage() {
Priority: $PRIORITY
Section: $SECTION
Installed-Size: 42
-Size: 42
-SHA256: 0000000000000000000000000000000000000000000000000000000000000000
-Maintainer: Joe Sixpack <joe@example.org>"
+Size: 42"
+ if echo "$DEPENDENCIES" | grep -q SHA256:; then
+ :
+ else
+ echo "SHA256: 0000000000000000000000000000000000000000000000000000000000000000"
+ fi
+ echo "Maintainer: Joe Sixpack <joe@example.org>"
test "$arch" = 'none' || echo "Architecture: $arch"
echo "Version: $VERSION
Filename: pool/${DISTSECTION}/${NAME}/${NAME}_${VERSION}_${arch}.deb"