]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-613420-new-garbage-dependency
Merge remote-tracking branch 'upstream/debian/experimental' into feature/srv-records
[apt.git] / test / integration / test-bug-613420-new-garbage-dependency
1 #!/bin/sh
2 set -e
3
4 TESTDIR=$(readlink -f $(dirname $0))
5 . $TESTDIR/framework
6 setupenvironment
7 configarchitecture "i386"
8
9 insertpackage 'unstable' 'libreoffice' 'all' '1:3.3.1~rc1-2' 'Depends: libreoffice-core'
10 insertpackage 'unstable' 'libreoffice-core' 'all' '1:3.3.1~rc1-2' 'Conflicts: openoffice.org-core'
11 insertpackage 'unstable' 'libreoffice-officebean' 'all' '1:3.3.1~rc1-2' 'Depends: libreoffice-core'
12 insertpackage 'unstable' 'openoffice.org-officebean' 'all' '1:3.3.0-5' 'Depends: libreoffice-officebean'
13
14
15 setupaptarchive
16
17 touch rootdir/var/lib/apt/extended_states
18 testsuccess aptmark markauto openoffice.org-officebean
19 testmarkedauto openoffice.org-officebean
20
21 testfailureequal "Reading package lists...
22 Building dependency tree...
23 Reading state information...
24 The following packages were automatically installed and are no longer required:
25 libreoffice-officebean openoffice.org-officebean
26 Use 'apt-get autoremove' to remove them.
27 The following additional packages will be installed:
28 libreoffice-core libreoffice-officebean openoffice.org-officebean
29 The following packages will be REMOVED:
30 openoffice.org-core
31 The following NEW packages will be installed:
32 libreoffice libreoffice-core libreoffice-officebean
33 The following packages will be upgraded:
34 openoffice.org-officebean
35 1 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
36 After this operation, 126 MB disk space will be freed.
37 E: Trivial Only specified but this is not a trivial operation." aptget install libreoffice --trivial-only
38 testequal "Reading package lists...
39 Building dependency tree...
40 Reading state information...
41 2 packages were automatically installed and are no longer required.
42 Use 'apt-get autoremove' to remove them.
43 The following additional packages will be installed:
44 libreoffice-core libreoffice-officebean openoffice.org-officebean
45 The following packages will be REMOVED:
46 openoffice.org-core
47 The following NEW packages will be installed:
48 libreoffice libreoffice-core libreoffice-officebean
49 The following packages will be upgraded:
50 openoffice.org-officebean
51 1 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
52 After this operation, 126 MB disk space will be freed.
53 E: Trivial Only specified but this is not a trivial operation." aptget install libreoffice --trivial-only -o APT::Get::HideAutoRemove=small