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