]>
Commit | Line | Data |
---|---|---|
c8b98973 DK |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
3abb6a6a DK |
4 | TESTDIR="$(readlink -f "$(dirname "$0")")" |
5 | . "$TESTDIR/framework" | |
c8b98973 DK |
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 | ||
c8b98973 DK |
14 | setupaptarchive |
15 | ||
16 | touch rootdir/var/lib/apt/extended_states | |
0440d936 | 17 | testsuccess aptmark markauto openoffice.org-officebean |
c8b98973 | 18 | testmarkedauto openoffice.org-officebean |
73fe49f9 DK |
19 | AUTOREMOVE='apt autoremove' |
20 | if [ -n "$SUDO_USER" ]; then | |
21 | AUTOREMOVE="sudo $AUTOREMOVE" | |
22 | fi | |
c8b98973 | 23 | |
25b86db1 | 24 | testfailureequal "Reading package lists... |
c8b98973 DK |
25 | Building dependency tree... |
26 | Reading state information... | |
27 | The following packages were automatically installed and are no longer required: | |
fdfdba56 | 28 | libreoffice-officebean openoffice.org-officebean |
73fe49f9 | 29 | Use '$AUTOREMOVE' to remove them. |
e7ebb414 | 30 | The following additional packages will be installed: |
c8b98973 DK |
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 | |
a0c19a21 DK |
41 | testequal "Reading package lists... |
42 | Building dependency tree... | |
43 | Reading state information... | |
44 | 2 packages were automatically installed and are no longer required. | |
73fe49f9 | 45 | Use '$AUTOREMOVE' to remove them. |
e7ebb414 | 46 | The following additional packages will be installed: |
a0c19a21 DK |
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 |