]>
Commit | Line | Data |
---|---|---|
2f5ed336 MV |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
3abb6a6a DK |
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" |
5 | . "$TESTDIR/framework" | |
2f5ed336 MV |
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 | ||
25b86db1 | 24 | testsuccessequal "Reading package lists... |
2f5ed336 MV |
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' | |
e7ebb414 | 28 | The following additional packages will be installed: |
2f5ed336 MV |
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 |