]>
git.saurik.com Git - apt.git/blob - test/integration/test-pin-non-existent-package
4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
7 configarchitecture "i386
"
9 insertpackage 'unstable' 'rapt' 'i386' '0.8.15'
10 insertpackage 'unstable' 'arch' 'i386' '1.0'
15 msgtest "Test that the Candidate
for $1 is
" $2
16 if [ "$(aptcache policy $1 | grep '^ Candidate:')" = " Candidate
: $2" ]; then
25 testcandidate rapt '0.8.15'
26 testsuccessequal 'N: Unable to locate package doesntexist' aptcache policy doesntexist
27 testsuccessequal 'Reading package lists...
28 Building dependency tree...
29 Calculating upgrade...
30 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget dist-upgrade --trivial-only
33 Pin: release a=unstable
34 Pin-Priority: -1' > rootdir/etc/apt/preferences
36 testcandidate rapt '(none)'
37 testsuccessequal 'N: Unable to locate package doesntexist' aptcache policy doesntexist
38 testsuccessequal 'Reading package lists...
39 Building dependency tree...
40 Calculating upgrade...
41 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget dist-upgrade --trivial-only
45 Pin: release a=unstable
46 Pin-Priority: 1000' >> rootdir/etc/apt/preferences
48 testcandidate rapt '(none)'
52 Pin: release a=unstable
53 Pin-Priority: 1000' >> rootdir/etc/apt/preferences
55 testcandidate rapt '(none)'
56 testsuccessequal 'N: Unable to locate package doesntexist' aptcache policy doesntexist
58 testsuccessequal 'Reading package lists...
59 Building dependency tree...
60 Calculating upgrade...
61 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget dist-upgrade --trivial-only
63 echo 'Package: arch:amd64
64 Pin: release a=unstable
65 Pin-Priority: -1' > rootdir/etc/apt/preferences
67 testcandidate arch '1.0'
71 Pin: release a=unstable
72 Pin-Priority: -1' >> rootdir/etc/apt/preferences
74 testcandidate arch '(none)'