summaryrefslogtreecommitdiffstats
path: root/test/integration/test-resolve-by-keep-new-recommends
blob: 3591ed84d65c39c65cf4356c186f450a35a7bee1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
set -e

TESTDIR="$(readlink -f "$(dirname "$0")")"
. "$TESTDIR/framework"
setupenvironment
configarchitecture "i386"

insertinstalledpackage 'foo' 'i386' '1.0'
insertpackage 'unstable' 'foo' 'i386' '2.0' 'Recommends: bar'

setupaptarchive

UPGRADE_KEEP="Reading package lists...
Building dependency tree...
Calculating upgrade...
The following packages have been kept back:
  foo
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded."
testsuccessequal "$UPGRADE_KEEP" aptget upgrade -s