]> git.saurik.com Git - apt.git/blob - test/integration/test-resolve-by-keep-new-recommends
merged from lp:~donkult/apt/sid/
[apt.git] / test / integration / test-resolve-by-keep-new-recommends
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture "i386"
8
9 insertinstalledpackage 'foo' 'i386' '1.0'
10 insertpackage 'unstable' 'foo' 'i386' '2.0' 'Recommends: bar'
11
12 setupaptarchive
13
14 UPGRADE_KEEP="Reading package lists...
15 Building dependency tree...
16 The following packages have been kept back:
17 foo
18 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded."
19 testequal "$UPGRADE_KEEP" aptget upgrade -s
20