]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-612557-garbage-upgrade
merged from lp:~donkult/apt/sid
[apt.git] / test / integration / test-bug-612557-garbage-upgrade
CommitLineData
fdbe7265
DK
1#!/bin/sh
2set -e
3
4local TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture "i386"
8
9insertpackage 'unstable' 'unrelated' 'all' '1:3.3.0-2'
10insertpackage 'unstable' 'python-uno' 'all' '1:3.3.0-2' 'Depends: libreoffice-common'
11insertpackage 'unstable' 'libreoffice-common' 'all' '1:3.3.0-2' 'Conflicts: openoffice.org-common'
12
13setupaptarchive
14
15touch rootdir/var/lib/apt/extended_states
16aptmark markauto python-uno ure uno-libs3 openoffice.org-common openoffice.org-style-galaxy
17#aptmark unmarkauto openoffice.org-emailmerge
18testmarkedauto python-uno ure uno-libs3 openoffice.org-common openoffice.org-style-galaxy
19
20testequal 'Reading package lists...
21Building dependency tree...
22Reading state information...
23The following extra packages will be installed:
24 libreoffice-common
25The following packages will be REMOVED:
26 openoffice.org-common openoffice.org-emailmerge
27The following NEW packages will be installed:
28 libreoffice-common
29The following packages will be upgraded:
30 python-uno
311 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
32After this operation, 53.2 MB disk space will be freed.
33E: Trivial Only specified but this is not a trivial operation.' aptget --trivial-only install python-uno
34
35aptmark markauto openoffice.org-emailmerge
36testmarkedauto python-uno ure uno-libs3 openoffice.org-common openoffice.org-style-galaxy openoffice.org-emailmerge
37
38testequal 'Reading package lists...
39Building dependency tree...
40Reading state information...
41The following extra packages will be installed:
42 libreoffice-common
43The following packages will be REMOVED:
44 openoffice.org-common openoffice.org-emailmerge
45The following NEW packages will be installed:
46 libreoffice-common
47The following packages will be upgraded:
48 python-uno
491 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
50After this operation, 53.2 MB disk space will be freed.
51E: Trivial Only specified but this is not a trivial operation.' aptget --trivial-only install python-uno
52
53testequal 'Reading package lists...
54Building dependency tree...
55Reading state information...
56The following packages will be REMOVED:
57 openoffice.org-common openoffice.org-emailmerge python-uno
580 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
59After this operation, 53.3 MB disk space will be freed.
60E: Trivial Only specified but this is not a trivial operation.' aptget autoremove --trivial-only