]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-64141-install-dependencies-for-on-hold
merged from debian-sid
[apt.git] / test / integration / test-bug-64141-install-dependencies-for-on-hold
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture "i386"
8 setupaptarchive
9
10 testequal 'Reading package lists...
11 Building dependency tree...
12 The following packages will be REMOVED:
13 oldcrap
14 The following NEW packages will be installed:
15 libdb4.8
16 The following packages will be upgraded:
17 apt libc6
18 2 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
19 Need to get 0 B/6724 kB of archives.
20 After this operation, 1523 kB of additional disk space will be used.
21 E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only
22
23 echo 'apt hold' | dpkg --set-selections
24
25 testequal 'Reading package lists...
26 Building dependency tree...
27 The following packages have been kept back:
28 apt
29 The following packages will be upgraded:
30 libc6
31 1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
32 Need to get 0 B/3881 kB of archives.
33 After this operation, 0 B of additional disk space will be used.
34 E: Trivial Only specified but this is not a trivial operation.' aptget dist-upgrade --trivial-only -o Test='hold-back-apt'