summaryrefslogtreecommitdiffstats
path: root/test/integration/test-bug-613420-new-garbage-dependency
blob: 46c3d94c9885d4a6d56b7eb812a68128dc8c6230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh
set -e

TESTDIR="$(readlink -f "$(dirname "$0")")"
. "$TESTDIR/framework"
setupenvironment
configarchitecture "i386"

insertpackage 'unstable' 'libreoffice' 'all' '1:3.3.1~rc1-2' 'Depends: libreoffice-core'
insertpackage 'unstable' 'libreoffice-core' 'all' '1:3.3.1~rc1-2' 'Conflicts: openoffice.org-core'
insertpackage 'unstable' 'libreoffice-officebean' 'all' '1:3.3.1~rc1-2' 'Depends: libreoffice-core'
insertpackage 'unstable' 'openoffice.org-officebean' 'all' '1:3.3.0-5' 'Depends: libreoffice-officebean'

setupaptarchive

touch rootdir/var/lib/apt/extended_states
testsuccess aptmark markauto openoffice.org-officebean
testmarkedauto openoffice.org-officebean
AUTOREMOVE='apt autoremove'
if [ -n "$SUDO_USER" ]; then
	AUTOREMOVE="sudo $AUTOREMOVE"
fi

testfailureequal "Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  libreoffice-officebean openoffice.org-officebean
Use '$AUTOREMOVE' to remove them.
The following additional packages will be installed:
  libreoffice-core libreoffice-officebean openoffice.org-officebean
The following packages will be REMOVED:
  openoffice.org-core
The following NEW packages will be installed:
  libreoffice libreoffice-core libreoffice-officebean
The following packages will be upgraded:
  openoffice.org-officebean
1 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B/168 B of archives.
After this operation, 126 MB disk space will be freed.
E: Trivial Only specified but this is not a trivial operation." aptget install libreoffice --trivial-only
testequal "Reading package lists...
Building dependency tree...
Reading state information...
2 packages were automatically installed and are no longer required.
Use '$AUTOREMOVE' to remove them.
The following additional packages will be installed:
  libreoffice-core libreoffice-officebean openoffice.org-officebean
The following packages will be REMOVED:
  openoffice.org-core
The following NEW packages will be installed:
  libreoffice libreoffice-core libreoffice-officebean
The following packages will be upgraded:
  openoffice.org-officebean
1 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B/168 B of archives.
After this operation, 126 MB disk space will be freed.
E: Trivial Only specified but this is not a trivial operation." aptget install libreoffice --trivial-only -o APT::Get::HideAutoRemove=small