]>
Commit | Line | Data |
---|---|---|
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' 'unrelated' 'all' '1:3.3.0-2' | |
10 | insertpackage 'unstable' 'python-uno' 'all' '1:3.3.0-2' 'Depends: libreoffice-common' | |
11 | insertpackage 'unstable' 'libreoffice-common' 'all' '1:3.3.0-2' 'Conflicts: openoffice.org-common' | |
12 | ||
13 | setupaptarchive | |
14 | ||
15 | touch rootdir/var/lib/apt/extended_states | |
16 | testsuccess aptmark markauto python-uno openoffice.org-common | |
17 | #aptmark unmarkauto openoffice.org-emailmerge | |
18 | testmarkedauto python-uno openoffice.org-common | |
19 | ||
20 | testfailureequal 'Reading package lists... | |
21 | Building dependency tree... | |
22 | Reading state information... | |
23 | The following additional packages will be installed: | |
24 | libreoffice-common | |
25 | The following packages will be REMOVED: | |
26 | openoffice.org-common openoffice.org-emailmerge | |
27 | The following NEW packages will be installed: | |
28 | libreoffice-common | |
29 | The following packages will be upgraded: | |
30 | python-uno | |
31 | 1 upgraded, 1 newly installed, 2 to remove and 0 not upgraded. | |
32 | After this operation, 53.2 MB disk space will be freed. | |
33 | E: Trivial Only specified but this is not a trivial operation.' aptget --trivial-only install python-uno | |
34 | ||
35 | testsuccess aptmark markauto openoffice.org-emailmerge | |
36 | testmarkedauto python-uno openoffice.org-common openoffice.org-emailmerge | |
37 | ||
38 | testfailureequal 'Reading package lists... | |
39 | Building dependency tree... | |
40 | Reading state information... | |
41 | The following additional packages will be installed: | |
42 | libreoffice-common | |
43 | The following packages will be REMOVED: | |
44 | openoffice.org-common openoffice.org-emailmerge | |
45 | The following NEW packages will be installed: | |
46 | libreoffice-common | |
47 | The following packages will be upgraded: | |
48 | python-uno | |
49 | 1 upgraded, 1 newly installed, 2 to remove and 0 not upgraded. | |
50 | After this operation, 53.2 MB disk space will be freed. | |
51 | E: Trivial Only specified but this is not a trivial operation.' aptget --trivial-only install python-uno | |
52 | ||
53 | testfailureequal 'Reading package lists... | |
54 | Building dependency tree... | |
55 | Reading state information... | |
56 | The following packages will be REMOVED: | |
57 | openoffice.org-common openoffice.org-emailmerge python-uno | |
58 | 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded. | |
59 | After this operation, 53.3 MB disk space will be freed. | |
60 | E: Trivial Only specified but this is not a trivial operation.' aptget autoremove --trivial-only |