summaryrefslogtreecommitdiffstats
path: root/test/integration/test-bug-612557-garbage-upgrade
blob: d232c441212730fa325e63337a5c434fdff08107 (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
59
60
#!/bin/sh
set -e

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

insertpackage 'unstable' 'unrelated' 'all' '1:3.3.0-2'
insertpackage 'unstable' 'python-uno' 'all' '1:3.3.0-2' 'Depends: libreoffice-common'
insertpackage 'unstable' 'libreoffice-common' 'all' '1:3.3.0-2' 'Conflicts: openoffice.org-common'

setupaptarchive

touch rootdir/var/lib/apt/extended_states
testsuccess aptmark markauto python-uno openoffice.org-common
#aptmark unmarkauto openoffice.org-emailmerge
testmarkedauto python-uno openoffice.org-common

testfailureequal 'Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libreoffice-common
The following packages will be REMOVED:
  openoffice.org-common openoffice.org-emailmerge
The following NEW packages will be installed:
  libreoffice-common
The following packages will be upgraded:
  python-uno
1 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
After this operation, 53.2 MB disk space will be freed.
E: Trivial Only specified but this is not a trivial operation.' aptget --trivial-only install python-uno

testsuccess aptmark markauto openoffice.org-emailmerge
testmarkedauto python-uno openoffice.org-common openoffice.org-emailmerge

testfailureequal 'Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libreoffice-common
The following packages will be REMOVED:
  openoffice.org-common openoffice.org-emailmerge
The following NEW packages will be installed:
  libreoffice-common
The following packages will be upgraded:
  python-uno
1 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
After this operation, 53.2 MB disk space will be freed.
E: Trivial Only specified but this is not a trivial operation.' aptget --trivial-only install python-uno

testfailureequal 'Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
  openoffice.org-common openoffice.org-emailmerge python-uno
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 53.3 MB disk space will be freed.
E: Trivial Only specified but this is not a trivial operation.' aptget autoremove --trivial-only