]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-613420-new-garbage-dependency
rred: truncate result file before writing to it
[apt.git] / test / integration / test-bug-613420-new-garbage-dependency
CommitLineData
c8b98973
DK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
c8b98973
DK
6setupenvironment
7configarchitecture "i386"
8
9insertpackage 'unstable' 'libreoffice' 'all' '1:3.3.1~rc1-2' 'Depends: libreoffice-core'
10insertpackage 'unstable' 'libreoffice-core' 'all' '1:3.3.1~rc1-2' 'Conflicts: openoffice.org-core'
11insertpackage 'unstable' 'libreoffice-officebean' 'all' '1:3.3.1~rc1-2' 'Depends: libreoffice-core'
12insertpackage 'unstable' 'openoffice.org-officebean' 'all' '1:3.3.0-5' 'Depends: libreoffice-officebean'
13
c8b98973
DK
14setupaptarchive
15
16touch rootdir/var/lib/apt/extended_states
0440d936 17testsuccess aptmark markauto openoffice.org-officebean
c8b98973 18testmarkedauto openoffice.org-officebean
73fe49f9
DK
19AUTOREMOVE='apt autoremove'
20if [ -n "$SUDO_USER" ]; then
21 AUTOREMOVE="sudo $AUTOREMOVE"
22fi
c8b98973 23
25b86db1 24testfailureequal "Reading package lists...
c8b98973
DK
25Building dependency tree...
26Reading state information...
27The following packages were automatically installed and are no longer required:
fdfdba56 28 libreoffice-officebean openoffice.org-officebean
73fe49f9 29Use '$AUTOREMOVE' to remove them.
e7ebb414 30The following additional packages will be installed:
c8b98973
DK
31 libreoffice-core libreoffice-officebean openoffice.org-officebean
32The following packages will be REMOVED:
33 openoffice.org-core
34The following NEW packages will be installed:
35 libreoffice libreoffice-core libreoffice-officebean
36The following packages will be upgraded:
37 openoffice.org-officebean
381 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
39After this operation, 126 MB disk space will be freed.
40E: Trivial Only specified but this is not a trivial operation." aptget install libreoffice --trivial-only
a0c19a21
DK
41testequal "Reading package lists...
42Building dependency tree...
43Reading state information...
442 packages were automatically installed and are no longer required.
73fe49f9 45Use '$AUTOREMOVE' to remove them.
e7ebb414 46The following additional packages will be installed:
a0c19a21
DK
47 libreoffice-core libreoffice-officebean openoffice.org-officebean
48The following packages will be REMOVED:
49 openoffice.org-core
50The following NEW packages will be installed:
51 libreoffice libreoffice-core libreoffice-officebean
52The following packages will be upgraded:
53 openoffice.org-officebean
541 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
55After this operation, 126 MB disk space will be freed.
56E: Trivial Only specified but this is not a trivial operation." aptget install libreoffice --trivial-only -o APT::Get::HideAutoRemove=small