]> git.saurik.com Git - apt.git/blame - test/integration/test-resolve-by-keep-new-recommends
centralize unlink checks in acquire-item
[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...
2a884c61 16Calculating upgrade...
953b348c
MV
17The following packages have been kept back:
18 foo
190 upgraded, 0 newly installed, 0 to remove and 1 not upgraded."
25b86db1 20testsuccessequal "$UPGRADE_KEEP" aptget upgrade -s
953b348c 21