From 848fd2a65fa2aef296d44c9a19b89ac272ca12fe Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 27 Aug 2015 00:28:47 +0200 Subject: install: Set a local deb as the candidate for that package This ensures that we can install .deb files that are not the candidate for a given package. --- test/integration/test-apt-get-install-deb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test/integration/test-apt-get-install-deb') diff --git a/test/integration/test-apt-get-install-deb b/test/integration/test-apt-get-install-deb index bd720bede..65951cede 100755 --- a/test/integration/test-apt-get-install-deb +++ b/test/integration/test-apt-get-install-deb @@ -60,3 +60,21 @@ The following NEW packages will be installed: Remv foo:i386 [1.0] Inst foo (1.0 local-deb [amd64]) Conf foo (1.0 local-deb [amd64])" aptget install ./incoming/foo_1.0_amd64.deb -s -q=0 + +# Check that installing the local deb works if it is not the candidate +echo "Package: foo +Pin: version 1.0 +Pin-Priority: -1" > rootdir/etc/apt/preferences + +testsuccessequal "Reading package lists... +Building dependency tree... +Reading state information... +Note, selecting 'foo' instead of './incoming/foo_1.0_amd64.deb' +The following packages will be REMOVED: + foo:i386 +The following NEW packages will be installed: + foo +0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. +Remv foo:i386 [1.0] +Inst foo (1.0 local-deb [amd64]) +Conf foo (1.0 local-deb [amd64])" aptget install ./incoming/foo_1.0_amd64.deb -s -q=0 -- cgit v1.2.3