]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-apt-get-install-deb
don't loop on pinning pkgs from absolute debs by regex
[apt.git] / test / integration / test-apt-get-install-deb
index 7baaf0ee5c86f9ac13f0edbd2232ee7a293bd31d..36e94a2dc5be1d5a31e435e2d0e0e668df9f8ad1 100755 (executable)
@@ -125,8 +125,12 @@ createpkg 'leading-newline' '
 createpkg 'trailing-newline' '' '
 '
 
+echo 'Package: /pkg-/
+Pin: release a=experimental
+Pin-Priority: 501' > rootdir/etc/apt/preferences.d/pinit
+
 testsuccess aptget install ./incoming/pkg-as-it-should-be_0_all.deb
-testsuccess aptget install ./incoming/pkg-leading-newline_0_all.deb
+testsuccess aptget install "$(readlink -f ./incoming/pkg-leading-newline_0_all.deb)"
 testsuccess aptget install ./incoming/pkg-trailing-newline_0_all.deb
 
 testempty apt clean