]> git.saurik.com Git - apt.git/blob - test/integration/test-bug-613420-new-garbage-dependency
use +0000 instead of UTC by default as timezone in output
[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 setupaptarchive
15
16 touch rootdir/var/lib/apt/extended_states
17 testsuccess aptmark markauto openoffice.org-officebean
18 testmarkedauto openoffice.org-officebean
19 AUTOREMOVE='apt autoremove'
20 if [ -n "$SUDO_USER" ]; then
21 AUTOREMOVE="sudo $AUTOREMOVE"
22 fi
23
24 testfailureequal "Reading package lists...
25 Building dependency tree...
26 Reading state information...
27 The following packages were automatically installed and are no longer required:
28 libreoffice-officebean openoffice.org-officebean
29 Use '$AUTOREMOVE' to remove them.
30 The following additional packages will be installed:
31 libreoffice-core libreoffice-officebean openoffice.org-officebean
32 The following packages will be REMOVED:
33 openoffice.org-core
34 The following NEW packages will be installed:
35 libreoffice libreoffice-core libreoffice-officebean
36 The following packages will be upgraded:
37 openoffice.org-officebean
38 1 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
39 After this operation, 126 MB disk space will be freed.
40 E: Trivial Only specified but this is not a trivial operation." aptget install libreoffice --trivial-only
41 testequal "Reading package lists...
42 Building dependency tree...
43 Reading state information...
44 2 packages were automatically installed and are no longer required.
45 Use '$AUTOREMOVE' to remove them.
46 The following additional packages will be installed:
47 libreoffice-core libreoffice-officebean openoffice.org-officebean
48 The following packages will be REMOVED:
49 openoffice.org-core
50 The following NEW packages will be installed:
51 libreoffice libreoffice-core libreoffice-officebean
52 The following packages will be upgraded:
53 openoffice.org-officebean
54 1 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
55 After this operation, 126 MB disk space will be freed.
56 E: Trivial Only specified but this is not a trivial operation." aptget install libreoffice --trivial-only -o APT::Get::HideAutoRemove=small