]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-709560-set-candidate-release
Fix several typos
[apt.git] / test / integration / test-bug-709560-set-candidate-release
1 #!/bin/sh
2 set -e
3
4 TESTDIR="$(readlink -f "$(dirname "$0")")"
5 . "$TESTDIR/framework"
6 setupenvironment
7 configarchitecture 'amd64'
8
9 insertpackage 'experimental' 'foo' 'all' '2.0' 'Depends: foo-dep (= 2.1)'
10 insertpackage 'experimental' 'foo-dep' 'all' '2.1'
11
12
13 (
14 cat <<EOF
15 Package: *
16 Pin: release a=experimental
17 Pin-Priority: -10
18 EOF
19 ) > rootdir/etc/apt/preferences
20
21
22 setupaptarchive
23
24 testsuccessequal "Reading package lists...
25 Building dependency tree...
26 Selected version '2.0' (experimental [all]) for 'foo'
27 Selected version '2.1' (experimental [all]) for 'foo-dep' because of 'foo'
28 The following additional packages will be installed:
29 foo-dep
30 The following NEW packages will be installed:
31 foo foo-dep
32 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
33 Inst foo-dep (2.1 experimental [all])
34 Inst foo (2.0 experimental [all])
35 Conf foo-dep (2.1 experimental [all])
36 Conf foo (2.0 experimental [all])" aptget install -q0 -s foo/experimental