]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-64141-install-dependencies-for-on-hold
Test that SHA1-only .diff/Index files are not used
[apt.git] / test / integration / test-bug-64141-install-dependencies-for-on-hold
CommitLineData
cbd5fc0a
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
cbd5fc0a 6setupenvironment
5834d7a1
DK
7configarchitecture 'native' 'strange-arch'
8
9insertpackage 'unstable' 'unrelated' 'strange-arch' '1'
10
11insertinstalledpackage 'apt' 'native' '0.8.9' 'Depends: libc6 (>= 2.3.4)'
12insertinstalledpackage 'libc6' 'native' '2.4.1-1'
13insertinstalledpackage 'oldcrap' 'all' '1-1'
14
15insertpackage 'unstable' 'apt' 'native' '0.8.10' 'Depends: libc6 (>= 2.10), libdb4.8
16Breaks: oldcrap'
17insertpackage 'unstable' 'libc6' 'native' '2.11.2-7'
18insertpackage 'unstable' 'libdb4.8' 'native' '4.8.30-3'
19
cbd5fc0a
DK
20setupaptarchive
21
25b86db1 22testfailureequal 'Reading package lists...
cbd5fc0a 23Building dependency tree...
2a884c61 24Calculating upgrade...
cbd5fc0a
DK
25The following packages will be REMOVED:
26 oldcrap
27The following NEW packages will be installed:
28 libdb4.8
29The following packages will be upgraded:
30 apt libc6
312 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
5834d7a1 32After this operation, 0 B of additional disk space will be used.
cbd5fc0a
DK
33E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only
34
0440d936 35testsuccess aptmark hold apt
cbd5fc0a 36
25b86db1 37testfailureequal 'Reading package lists...
cbd5fc0a 38Building dependency tree...
2a884c61 39Calculating upgrade...
cbd5fc0a
DK
40The following packages have been kept back:
41 apt
42The following packages will be upgraded:
43 libc6
441 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
cbd5fc0a
DK
45After this operation, 0 B of additional disk space will be used.
46E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only -o Test='hold-back-apt'