]>
Commit | Line | Data |
---|---|---|
d059cc26 MV |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
3abb6a6a DK |
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" |
5 | . "$TESTDIR/framework" | |
d059cc26 MV |
6 | setupenvironment |
7 | configarchitecture 'i386' | |
8 | ||
9 | cat > rootdir/etc/apt/preferences <<EOF | |
10 | Package: * | |
11 | Pin: release testing | |
12 | Pin-Priority: 600 | |
13 | ||
14 | Package: * | |
15 | Pin: release unstable | |
16 | Pin-Priority: 1 | |
17 | EOF | |
18 | ||
10e100e5 | 19 | insertpackage 'testing,installed' 'foo' 'all' '1' |
d059cc26 MV |
20 | insertpackage 'testing-updates' 'foo' 'all' '2' |
21 | insertpackage 'unstable' 'foo' 'all' '3' | |
22 | ||
23 | insertinstalledpackage 'bar' 'all' '1' | |
24 | insertpackage 'testing' 'bar' 'all' '2' | |
25 | ||
26 | setupaptarchive | |
27 | ||
25b86db1 | 28 | testsuccessequal "Listing... |
87d6947d DK |
29 | bar/testing 2 all [upgradable from: 1] |
30 | N: There is 1 additional version. Please use the '-a' switch to see it" apt list --upgradable | |
d059cc26 | 31 | |
25b86db1 | 32 | testsuccessequal "Listing... |
d059cc26 | 33 | bar/testing 2 all [upgradable from: 1] |
561a3557 | 34 | dpkg/now 1.16.2+fake all [installed,local] |
d059cc26 | 35 | foo/testing,now 1 all [installed]" apt list |