summaryrefslogtreecommitdiff
path: root/test/integration/test-bug-549968-install-depends-of-not-installed
blob: 871d236b9120cc7c8b48bff68f9d01fd824d4cd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
set -e

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

insertpackage 'unstable' 'libc6' 'all' '1.0'
insertpackage 'unstable' 'coolstuff' 'all' '1.0' 'Recommends: extracoolstuff'
insertpackage 'unstable' 'extracoolstuff' 'all' '1.0' 'Depends: libc6'

setupaptarchive

# We check the Markers here as the autoremove nuker will also
# prevent it, but to late - its better to fail earlier
testequal 'Reading package lists...
Building dependency tree...
  MarkInstall coolstuff [ i386 ] < none -> 1.0 > ( other ) FU=1
    Hold prevents MarkInstall of extracoolstuff [ i386 ] < none -> 1.0 > ( other ) FU=0
Package extracoolstuff is not installed, so not removed
The following NEW packages will be installed:
  coolstuff
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst coolstuff (1.0 unstable [i386])
Conf coolstuff (1.0 unstable [i386])' aptget install coolstuff extracoolstuff- -o Debug::pkgDepCache::Marker=1 -s