]>
git.saurik.com Git - apt.git/blob - test/integration/test-bug-758153-versioned-provides-support
4 # dpkg implements versioned provides in commit 5bb02fe80e9f40dcad9703a72f67cf615ff217b5
5 # but previous versions seem to allow parsing, working and ignoring it.
7 TESTDIR
=$(readlink -f $(dirname $0))
10 configarchitecture
'amd64' 'i386'
12 insertinstalledpackage
'webapp' 'all' '1' 'Depends: httpd'
13 insertinstalledpackage
'webserver' 'all' '1' 'Provides: httpd'
15 insertpackage
'unstable' 'webapp' 'all' '2' 'Depends: httpd (>= 2)'
16 insertpackage
'unstable' 'webserver' 'amd64' '2' 'Provides: httpd (= 2)'
17 insertpackage
'unstable' 'foreign-webserver' 'i386' '2' 'Multi-Arch: foreign
18 Provides: httpd (= 2)'
20 insertpackage
'experimental' 'webapp' 'all' '3' 'Depends: httpd (>= 1.5)'
21 insertpackage
'experimental' 'webserver' 'amd64' '3' 'Provides: httpd (= 3)'
23 insertpackage
'experimental' 'foreign-webserver' 'i386' '4' 'Multi-Arch: foreign
24 Provides: httpd (= 4)'
25 insertpackage
'experimental' 'cool-webapp' 'all' '4' 'Depends: httpd (>= 4)'
27 # arch-qualified provides, see #777071
28 insertpackage
'unstable' 'foo' 'all' '1' 'Provides: bar:i386'
29 insertpackage
'unstable' 'baz' 'i386,amd64' '1' 'Depends: bar'
30 insertpackage
'experimental' 'baz' 'i386,amd64' '2' 'Depends: bar:i386'
31 insertpackage
'experimental' 'baz-broken' 'i386' '2' 'Depends: bar:amd64'
35 testsuccessequal
'Reading package lists...
36 Building dependency tree...
37 Calculating upgrade...
38 The following packages will be upgraded:
40 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
41 Inst webserver [1] (2 unstable [amd64])
42 Inst webapp [1] (2 unstable [all])
43 Conf webserver (2 unstable [amd64])
44 Conf webapp (2 unstable [all])' aptget dist
-upgrade -s
46 testsuccessequal
'Reading package lists...
47 Building dependency tree...
48 The following packages will be upgraded:
50 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
51 Inst webserver [1] (2 unstable [amd64])
52 Inst webapp [1] (2 unstable [all])
53 Conf webserver (2 unstable [amd64])
54 Conf webapp (2 unstable [all])' aptget
install webapp webserver
-s
56 testsuccessequal
'Reading package lists...
57 Building dependency tree...
58 The following packages will be upgraded:
60 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
61 Inst webserver [1] (2 unstable [amd64])
62 Inst webapp [1] (3 experimental [all])
63 Conf webserver (2 unstable [amd64])
64 Conf webapp (3 experimental [all])' aptget
install webapp
=3 webserver
-s
66 testsuccessequal
'Reading package lists...
67 Building dependency tree...
68 The following packages will be upgraded:
70 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
71 Inst webserver [1] (3 experimental [amd64])
72 Inst webapp [1] (2 unstable [all])
73 Conf webserver (3 experimental [amd64])
74 Conf webapp (2 unstable [all])' aptget
install webapp webserver
=3 -s
76 testsuccessequal
'Reading package lists...
77 Building dependency tree...
78 The following NEW packages will be installed:
79 foreign-webserver:i386
80 The following packages will be upgraded:
82 1 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
83 Inst foreign-webserver:i386 (2 unstable [i386])
84 Inst webapp [1] (2 unstable [all])
85 Conf foreign-webserver:i386 (2 unstable [i386])
86 Conf webapp (2 unstable [all])' aptget
install webapp foreign
-webserver:i386
-s
88 testsuccessequal
'Reading package lists...
89 Building dependency tree...
90 The following NEW packages will be installed:
91 foreign-webserver:i386
92 The following packages will be upgraded:
94 1 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
95 Inst foreign-webserver:i386 (2 unstable [i386])
96 Inst webapp [1] (3 experimental [all])
97 Conf foreign-webserver:i386 (2 unstable [i386])
98 Conf webapp (3 experimental [all])' aptget
install webapp
=3 foreign
-webserver:i386
-s
100 testsuccessequal
'Reading package lists...
101 Building dependency tree...
102 The following NEW packages will be installed:
103 foreign-webserver:i386
104 The following packages will be upgraded:
106 1 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
107 Inst foreign-webserver:i386 (4 experimental [i386])
108 Inst webapp [1] (2 unstable [all])
109 Conf foreign-webserver:i386 (4 experimental [i386])
110 Conf webapp (2 unstable [all])' aptget
install webapp foreign
-webserver:i386
=4 -s
112 testfailureequal
'Reading package lists...
113 Building dependency tree...
114 Some packages could not be installed. This may mean that you have
115 requested an impossible situation or if you are using the unstable
116 distribution that some required packages have not yet been created
117 or been moved out of Incoming.
118 The following information may help to resolve the situation:
120 The following packages have unmet dependencies:
121 cool-webapp : Depends: httpd (>= 4)
122 E: Unable to correct problems, you have held broken packages.' aptget
install cool
-webapp -s
124 testfailureequal
'Reading package lists...
125 Building dependency tree...
126 Some packages could not be installed. This may mean that you have
127 requested an impossible situation or if you are using the unstable
128 distribution that some required packages have not yet been created
129 or been moved out of Incoming.
130 The following information may help to resolve the situation:
132 The following packages have unmet dependencies:
133 cool-webapp : Depends: httpd (>= 4)
134 E: Unable to correct problems, you have held broken packages.' aptget
install cool
-webapp foreign
-webserver:i386
-s
136 testsuccessequal
'Reading package lists...
137 Building dependency tree...
138 The following NEW packages will be installed:
139 cool-webapp foreign-webserver:i386
140 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
141 Inst foreign-webserver:i386 (4 experimental [i386])
142 Inst cool-webapp (4 experimental [all])
143 Conf foreign-webserver:i386 (4 experimental [i386])
144 Conf cool-webapp (4 experimental [all])' aptget
install cool
-webapp foreign
-webserver:i386
=4 -s
146 testsuccessequal
'Reading package lists...
147 Building dependency tree...
148 The following extra packages will be installed:
150 The following NEW packages will be installed:
152 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
153 Inst foo (1 unstable [all])
154 Inst baz:i386 (1 unstable [i386])
155 Conf foo (1 unstable [all])
156 Conf baz:i386 (1 unstable [i386])' aptget
install baz
:i386
-s
158 testfailureequal
'Reading package lists...
159 Building dependency tree...
160 Some packages could not be installed. This may mean that you have
161 requested an impossible situation or if you are using the unstable
162 distribution that some required packages have not yet been created
163 or been moved out of Incoming.
164 The following information may help to resolve the situation:
166 The following packages have unmet dependencies:
167 baz : Depends: bar but it is not installable
168 E: Unable to correct problems, you have held broken packages.' aptget
install baz
:amd64
-s
170 testsuccessequal
"Reading package lists...
171 Building dependency tree...
172 Selected version '2' (experimental [amd64]) for 'baz'
173 The following extra packages will be installed:
175 The following NEW packages will be installed:
177 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
178 Inst foo (1 unstable [all])
179 Inst baz (2 experimental [amd64])
180 Conf foo (1 unstable [all])
181 Conf baz (2 experimental [amd64])" aptget
install baz
/experimental
-s -q=0
183 testsuccessequal
"Reading package lists...
184 Building dependency tree...
185 Selected version '2' (experimental [i386]) for 'baz:i386'
186 The following extra packages will be installed:
188 The following NEW packages will be installed:
190 0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
191 Inst foo (1 unstable [all])
192 Inst baz:i386 (2 experimental [i386])
193 Conf foo (1 unstable [all])
194 Conf baz:i386 (2 experimental [i386])" aptget
install baz
:i
386/experimental
-s -q=0
196 testfailureequal
'Reading package lists...
197 Building dependency tree...
198 Some packages could not be installed. This may mean that you have
199 requested an impossible situation or if you are using the unstable
200 distribution that some required packages have not yet been created
201 or been moved out of Incoming.
202 The following information may help to resolve the situation:
204 The following packages have unmet dependencies:
205 baz-broken:i386 : Depends: bar but it is not installable
206 E: Unable to correct problems, you have held broken packages.' aptget
install baz
-broken -s