summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-07-01 14:00:47 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-31 13:49:37 +0200
commitde2c7e41ab4fe0e1e899e1d87c991e32cd343365 (patch)
treee51a8b1b5d52451901b96ad60d54c88fdd4afa26 /test
parent574ce54dae3089d6d2886bac6b8895510b0ececb (diff)
do not treat same-version local debs as downgrade
As the volatile sources are parsed last they were sorted behind the dpkg/status file and hence are treated as a downgrade, which isn't really what you want to happen as from a user POV its an upgrade. (cherry picked from commit cb9ac09bd6a36e73c2dce1d529acde6e4d15e32d)
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration/test-apt-get-install-deb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/integration/test-apt-get-install-deb b/test/integration/test-apt-get-install-deb
index 53675c080..3aacc301d 100755
--- a/test/integration/test-apt-get-install-deb
+++ b/test/integration/test-apt-get-install-deb
@@ -93,6 +93,7 @@ Version: 0
Priority: extra
Maintainer: No Body <no@example.org>
Architecture: all
+Depends: foo:i386
Description: test package" >> ./incoming/$PKG/DEBIAN/control
if [ -n "$3" ]; then
echo -n "$3" >> ./incoming/$PKG/DEBIAN/control
@@ -123,9 +124,12 @@ if [ "$(id -u)" = '0' ]; then
chmod 700 ./incoming
testsuccesswithnotice aptget install -y ./incoming/pkg-as-it-should-be_0_all.deb --reinstall
testfailure grep 'is already the newest version' rootdir/tmp/testsuccesswithnotice.output
+ chmod 711 ./incoming
else
testsuccess aptget install -y ./incoming/pkg-as-it-should-be_0_all.deb --reinstall
testfailure grep 'is already the newest version' rootdir/tmp/testsuccess.output
fi
-
+sed -i -e '/^Depends: foo/ d' rootdir/var/lib/dpkg/status
+testsuccess aptget install -y ./incoming/pkg-as-it-should-be_0_all.deb
+testfailure grep 'is already the newest version' rootdir/tmp/testsuccess.output