]> git.saurik.com Git - apt.git/blame - test/integration/test-bug-611729-mark-as-manual
allow conflicts in the same group again (Closes: #612099)
[apt.git] / test / integration / test-bug-611729-mark-as-manual
CommitLineData
eb76e936
DK
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6setupenvironment
7configarchitecture "i386"
8
9buildsimplenativepackage "peace-dpkg" "all" "1.0" "stable"
10
11buildsimplenativepackage "a" "all" "1.0" "stable" "Depends: b"
12buildsimplenativepackage "b" "all" "1.0" "stable"
13buildsimplenativepackage "c" "all" "1.0" "stable" "Depends: b"
14
15setupaptarchive
16
17# dpkg freaks out if the last package is removed so keep one around
18aptget install peace-dpkg -y -qq 2>&1 > /dev/null
19testdpkginstalled peace-dpkg
20testfileequal 'rootdir/var/lib/apt/extended_states' ''
21
22aptget install a -y -qq 2>&1 > /dev/null
23testdpkginstalled a b
24testdpkgnotinstalled c
25testfileequal 'rootdir/var/lib/apt/extended_states' 'Package: b
26Architecture: i386
27Auto-Installed: 1
28'
29
30aptget remove a -y -qq 2>&1 > /dev/null
31testdpkgnotinstalled a c
32testdpkginstalled b
33testfileequal 'rootdir/var/lib/apt/extended_states' 'Package: b
34Architecture: i386
35Auto-Installed: 1
36'
37
38aptget install c -y -qq 2>&1 > /dev/null
39testdpkgnotinstalled a
40testdpkginstalled b c
41testfileequal 'rootdir/var/lib/apt/extended_states' 'Package: b
42Architecture: i386
43Auto-Installed: 1
44'
45
46testequal 'Reading package lists...
47Building dependency tree...
48Reading state information...
49b is already the newest version.
500 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget install b --only-upgrade
51testfileequal 'rootdir/var/lib/apt/extended_states' 'Package: b
52Architecture: i386
53Auto-Installed: 1
54'
55
56testequal 'Reading package lists...
57Building dependency tree...
58Reading state information...
59b is already the newest version.
600 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget install b -d
61testfileequal 'rootdir/var/lib/apt/extended_states' 'Package: b
62Architecture: i386
63Auto-Installed: 1
64'
65
66aptget install b --reinstall -y -qq 2>&1 > /dev/null
67testdpkgnotinstalled a
68testdpkginstalled b c
69testfileequal 'rootdir/var/lib/apt/extended_states' 'Package: b
70Architecture: i386
71Auto-Installed: 1
72'
73
74testequal 'Reading package lists...
75Building dependency tree...
76Reading state information...
77b is already the newest version.
78b set to manually installed.
790 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.' aptget install b
80testfileequal 'rootdir/var/lib/apt/extended_states' 'Package: b
81Architecture: i386
82Auto-Installed: 0
83'
84
85aptget remove b -y -qq 2>&1 > /dev/null
86testdpkgnotinstalled a b c
87testfileequal 'rootdir/var/lib/apt/extended_states' ''
88
89aptget install a b -y -qq 2>&1 > /dev/null
90testdpkginstalled a b
91testdpkgnotinstalled c
92testfileequal 'rootdir/var/lib/apt/extended_states' ''
93
94aptget purge a b -y -qq 2>&1 > /dev/null
95testdpkgnotinstalled a b c
96testfileequal 'rootdir/var/lib/apt/extended_states' ''
97
98aptget install b c -y -qq 2>&1 > /dev/null
99testdpkgnotinstalled a
100testdpkginstalled b c
101testfileequal 'rootdir/var/lib/apt/extended_states' ''
102
103aptget install a -y -qq 2>&1 > /dev/null
104testdpkginstalled a b c
105testfileequal 'rootdir/var/lib/apt/extended_states' ''