]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-apt-get-install-deb
Ensure that no by-hash file for "Release/InRelease is written"
[apt.git] / test / integration / test-apt-get-install-deb
index bd720bedec688cccb13acc04f90d4126a0d5b07e..89b7f7299c9b15289f93686820bf81a0471f521c 100755 (executable)
@@ -46,7 +46,25 @@ E: Unable to correct problems, you have held broken packages." aptget install ./
 
 testdpkgnotinstalled 'foo'
 testsuccess aptget install ./incoming/foo_1.0_i386.deb -o Debug::pkgCacheGen=1
-testdpkginstalled 'foo'
+testdpkginstalled 'foo:i386'
+
+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
+
+# 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...