Merge lp:~cjwatson/launchpad/build-depends-arch into lp:launchpad
- build-depends-arch
- Merge into devel
Proposed by
Colin Watson
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | Colin Watson | ||||
Proposed branch: | lp:~cjwatson/launchpad/build-depends-arch | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
484 lines (+117/-26) 17 files modified
lib/lp/archivepublisher/indices.py (+2/-0) lib/lp/archivepublisher/tests/test_indices.py (+9/-1) lib/lp/archiveuploader/dscfile.py (+2/-0) lib/lp/archiveuploader/tests/nascentupload.txt (+6/-0) lib/lp/registry/browser/sourcepackage.py (+10/-0) lib/lp/registry/interfaces/distroseries.py (+10/-7) lib/lp/registry/model/distroseries.py (+6/-4) lib/lp/registry/templates/sourcepackage-index.pt (+12/-0) lib/lp/soyuz/doc/package-relationship.txt (+5/-1) lib/lp/soyuz/doc/sourcepackagerelease.txt (+6/-4) lib/lp/soyuz/interfaces/sourcepackagerelease.py (+11/-1) lib/lp/soyuz/model/sourcepackagerelease.py (+2/-0) lib/lp/soyuz/scripts/gina/handlers.py (+2/-0) lib/lp/soyuz/scripts/gina/packages.py (+2/-0) lib/lp/soyuz/stories/soyuz/xx-distroseries-sources.txt (+23/-5) lib/lp/soyuz/tests/test_publishing.py (+5/-2) lib/lp/testing/factory.py (+4/-1) |
||||
To merge this branch: | bzr merge lp:~cjwatson/launchpad/build-depends-arch | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Disapprove | ||
Review via email: mp+282345@code.launchpad.net |
Commit message
Model and show SourcePackageRe
Description of the change
Model and show SourcePackageRe
To post a comment you must log in.
Unmerged revisions
- 17889. By Colin Watson
-
Model and show SourcePackageRe
lease.builddepe ndsarch and SourcePackageRe lease.build_ conflicts_ arch.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'lib/lp/archivepublisher/indices.py' |
2 | --- lib/lp/archivepublisher/indices.py 2014-10-31 13:28:31 +0000 |
3 | +++ lib/lp/archivepublisher/indices.py 2016-01-12 17:05:26 +0000 |
4 | @@ -118,8 +118,10 @@ |
5 | fields.append('Maintainer', spr.dsc_maintainer_rfc822) |
6 | fields.append('Build-Depends', spr.builddepends) |
7 | fields.append('Build-Depends-Indep', spr.builddependsindep) |
8 | + fields.append('Build-Depends-Arch', spr.builddependsarch) |
9 | fields.append('Build-Conflicts', spr.build_conflicts) |
10 | fields.append('Build-Conflicts-Indep', spr.build_conflicts_indep) |
11 | + fields.append('Build-Conflicts-Arch', spr.build_conflicts_arch) |
12 | fields.append('Architecture', spr.architecturehintlist) |
13 | fields.append('Standards-Version', spr.dsc_standards_version) |
14 | fields.append('Format', spr.dsc_format) |
15 | |
16 | === modified file 'lib/lp/archivepublisher/tests/test_indices.py' |
17 | --- lib/lp/archivepublisher/tests/test_indices.py 2014-10-31 13:05:52 +0000 |
18 | +++ lib/lp/archivepublisher/tests/test_indices.py 2016-01-12 17:05:26 +0000 |
19 | @@ -64,7 +64,9 @@ |
20 | """ |
21 | pub_source = self.getPubSource( |
22 | builddepends='fooish', builddependsindep='pyfoo', |
23 | - build_conflicts='bar', build_conflicts_indep='pybar') |
24 | + builddependsarch='libfoo-dev', |
25 | + build_conflicts='bar', build_conflicts_indep='pybar', |
26 | + build_conflicts_arch='libbar-dev') |
27 | |
28 | self.assertEqual( |
29 | [u'Package: foo', |
30 | @@ -74,8 +76,10 @@ |
31 | u'Maintainer: Foo Bar <foo@bar.com>', |
32 | u'Build-Depends: fooish', |
33 | u'Build-Depends-Indep: pyfoo', |
34 | + u'Build-Depends-Arch: libfoo-dev', |
35 | u'Build-Conflicts: bar', |
36 | u'Build-Conflicts-Indep: pybar', |
37 | + u'Build-Conflicts-Arch: libbar-dev', |
38 | u'Architecture: all', |
39 | u'Standards-Version: 3.6.2', |
40 | u'Format: 1.0', |
41 | @@ -99,7 +103,9 @@ |
42 | """ |
43 | pub_source = self.getPubSource( |
44 | builddepends='fooish', builddependsindep='pyfoo', |
45 | + builddependsarch='libfoo-dev', |
46 | build_conflicts='bar', build_conflicts_indep='pybar', |
47 | + build_conflicts_arch='libbar-dev', |
48 | user_defined_fields=[ |
49 | ("Python-Version", "< 1.5"), |
50 | ("CHECKSUMS-SHA1", "BLAH")]) |
51 | @@ -112,8 +118,10 @@ |
52 | u'Maintainer: Foo Bar <foo@bar.com>', |
53 | u'Build-Depends: fooish', |
54 | u'Build-Depends-Indep: pyfoo', |
55 | + u'Build-Depends-Arch: libfoo-dev', |
56 | u'Build-Conflicts: bar', |
57 | u'Build-Conflicts-Indep: pybar', |
58 | + u'Build-Conflicts-Arch: libbar-dev', |
59 | u'Architecture: all', |
60 | u'Standards-Version: 3.6.2', |
61 | u'Format: 1.0', |
62 | |
63 | === modified file 'lib/lp/archiveuploader/dscfile.py' |
64 | --- lib/lp/archiveuploader/dscfile.py 2015-07-30 07:46:08 +0000 |
65 | +++ lib/lp/archiveuploader/dscfile.py 2016-01-12 17:05:26 +0000 |
66 | @@ -661,8 +661,10 @@ |
67 | maintainer=self.maintainer['person'], |
68 | builddepends=encoded.get('Build-Depends', ''), |
69 | builddependsindep=encoded.get('Build-Depends-Indep', ''), |
70 | + builddependsarch=encoded.get('Build-Depends-Arch', ''), |
71 | build_conflicts=encoded.get('Build-Conflicts', ''), |
72 | build_conflicts_indep=encoded.get('Build-Conflicts-Indep', ''), |
73 | + build_conflicts_arch=encoded.get('Build-Conflicts-Arch', ''), |
74 | architecturehintlist=encoded.get('Architecture', ''), |
75 | creator=self.changes.changed_by['person'], |
76 | urgency=self.changes.converted_urgency, |
77 | |
78 | === modified file 'lib/lp/archiveuploader/tests/nascentupload.txt' |
79 | --- lib/lp/archiveuploader/tests/nascentupload.txt 2015-12-30 23:34:34 +0000 |
80 | +++ lib/lp/archiveuploader/tests/nascentupload.txt 2016-01-12 17:05:26 +0000 |
81 | @@ -373,12 +373,18 @@ |
82 | >>> ed_spr.builddependsindep |
83 | u'' |
84 | |
85 | + >>> ed_spr.builddependsarch |
86 | + u'' |
87 | + |
88 | >>> ed_spr.build_conflicts |
89 | u'foo-bar' |
90 | |
91 | >>> ed_spr.build_conflicts_indep |
92 | u'biscuit' |
93 | |
94 | + >>> ed_spr.build_conflicts_arch |
95 | + u'' |
96 | + |
97 | The content of 'debian/copyright' is stored as the 'copyright' |
98 | attribute of SourcePackageRelease (note that its content is filtered |
99 | with encoding.guess()). |
100 | |
101 | === modified file 'lib/lp/registry/browser/sourcepackage.py' |
102 | --- lib/lp/registry/browser/sourcepackage.py 2015-10-01 17:32:41 +0000 |
103 | +++ lib/lp/registry/browser/sourcepackage.py 2016-01-12 17:05:26 +0000 |
104 | @@ -520,6 +520,11 @@ |
105 | self.context.currentrelease.builddependsindep) |
106 | |
107 | @property |
108 | + def builddependsarch(self): |
109 | + return self._relationship_parser( |
110 | + self.context.currentrelease.builddependsarch) |
111 | + |
112 | + @property |
113 | def build_conflicts(self): |
114 | return self._relationship_parser( |
115 | self.context.currentrelease.build_conflicts) |
116 | @@ -529,6 +534,11 @@ |
117 | return self._relationship_parser( |
118 | self.context.currentrelease.build_conflicts_indep) |
119 | |
120 | + @property |
121 | + def build_conflicts_arch(self): |
122 | + return self._relationship_parser( |
123 | + self.context.currentrelease.build_conflicts_arch) |
124 | + |
125 | def requestCountry(self): |
126 | return ICountry(self.request, None) |
127 | |
128 | |
129 | === modified file 'lib/lp/registry/interfaces/distroseries.py' |
130 | --- lib/lp/registry/interfaces/distroseries.py 2015-10-13 13:22:08 +0000 |
131 | +++ lib/lp/registry/interfaces/distroseries.py 2016-01-12 17:05:26 +0000 |
132 | @@ -646,13 +646,13 @@ |
133 | |
134 | def createUploadedSourcePackageRelease( |
135 | sourcepackagename, version, maintainer, builddepends, |
136 | - builddependsindep, architecturehintlist, component, creator, urgency, |
137 | - changelog, changelog_entry, dsc, dscsigningkey, section, |
138 | - dsc_maintainer_rfc822, dsc_standards_version, dsc_format, |
139 | - dsc_binaries, archive, copyright, build_conflicts, |
140 | - build_conflicts_indep, dateuploaded=None, |
141 | - source_package_recipe_build=None, user_defined_fields=None, |
142 | - homepage=None): |
143 | + builddependsindep, builddependsarch, architecturehintlist, |
144 | + component, creator, urgency, changelog, changelog_entry, dsc, |
145 | + dscsigningkey, section, dsc_maintainer_rfc822, |
146 | + dsc_standards_version, dsc_format, dsc_binaries, archive, copyright, |
147 | + build_conflicts, build_conflicts_indep, build_conflicts_arch, |
148 | + dateuploaded=None, source_package_recipe_build=None, |
149 | + user_defined_fields=None, homepage=None): |
150 | """Create an uploads `SourcePackageRelease`. |
151 | |
152 | Set this distroseries set to be the uploadeddistroseries. |
153 | @@ -678,9 +678,12 @@ |
154 | :param builddepends: string, DSC build dependencies |
155 | :param builddependsindep: string, DSC architecture independent build |
156 | dependencies. |
157 | + :param builddependsarch: string, DSC architecture dependent build |
158 | + dependencies. |
159 | :param build_conflicts: string, DSC Build-Conflicts content |
160 | :param build_conflicts_indep: string, DSC Build-Conflicts-Indep |
161 | content |
162 | + :param build_conflicts_arch: string, DSC Build-Conflicts-Arch content |
163 | :param dsc_maintainer_rfc822: string, DSC maintainer field |
164 | :param dsc_standards_version: string, DSC standards version field |
165 | :param dsc_format: string, DSC format version field |
166 | |
167 | === modified file 'lib/lp/registry/model/distroseries.py' |
168 | --- lib/lp/registry/model/distroseries.py 2015-12-15 14:12:25 +0000 |
169 | +++ lib/lp/registry/model/distroseries.py 2016-01-12 17:05:26 +0000 |
170 | @@ -1142,11 +1142,11 @@ |
171 | |
172 | def createUploadedSourcePackageRelease( |
173 | self, sourcepackagename, version, maintainer, builddepends, |
174 | - builddependsindep, architecturehintlist, component, creator, |
175 | - urgency, changelog, changelog_entry, dsc, dscsigningkey, section, |
176 | - dsc_maintainer_rfc822, dsc_standards_version, dsc_format, |
177 | + builddependsindep, builddependsarch, architecturehintlist, component, |
178 | + creator, urgency, changelog, changelog_entry, dsc, dscsigningkey, |
179 | + section, dsc_maintainer_rfc822, dsc_standards_version, dsc_format, |
180 | dsc_binaries, archive, copyright, build_conflicts, |
181 | - build_conflicts_indep, dateuploaded=DEFAULT, |
182 | + build_conflicts_indep, build_conflicts_arch, dateuploaded=DEFAULT, |
183 | source_package_recipe_build=None, user_defined_fields=None, |
184 | homepage=None): |
185 | """See `IDistroSeries`.""" |
186 | @@ -1154,6 +1154,7 @@ |
187 | upload_distroseries=self, sourcepackagename=sourcepackagename, |
188 | version=version, maintainer=maintainer, dateuploaded=dateuploaded, |
189 | builddepends=builddepends, builddependsindep=builddependsindep, |
190 | + builddependsarch=builddependsarch, |
191 | architecturehintlist=architecturehintlist, component=component, |
192 | creator=creator, urgency=urgency, changelog=changelog, |
193 | changelog_entry=changelog_entry, dsc=dsc, |
194 | @@ -1164,6 +1165,7 @@ |
195 | dsc_format=dsc_format, dsc_binaries=dsc_binaries, |
196 | build_conflicts=build_conflicts, |
197 | build_conflicts_indep=build_conflicts_indep, |
198 | + build_conflicts_arch=build_conflicts_arch, |
199 | source_package_recipe_build=source_package_recipe_build, |
200 | user_defined_fields=user_defined_fields, homepage=homepage) |
201 | |
202 | |
203 | === modified file 'lib/lp/registry/templates/sourcepackage-index.pt' |
204 | --- lib/lp/registry/templates/sourcepackage-index.pt 2015-11-24 01:44:28 +0000 |
205 | +++ lib/lp/registry/templates/sourcepackage-index.pt 2016-01-12 17:05:26 +0000 |
206 | @@ -124,6 +124,12 @@ |
207 | <tal:block tal:condition="relationships/has_items" |
208 | replace="structure relationships/@@+render-list"/> |
209 | </td> |
210 | + <td id="dependsarch" |
211 | + tal:define="relationships view/builddependsarch"> |
212 | + <h3>Platform-dependent build dependencies</h3> |
213 | + <tal:block tal:condition="relationships/has_items" |
214 | + replace="structure relationships/@@+render-list"/> |
215 | + </td> |
216 | </tr> |
217 | <tr> |
218 | <td id="conflicts" tal:define="relationships view/build_conflicts"> |
219 | @@ -137,6 +143,12 @@ |
220 | <tal:block tal:condition="relationships/has_items" |
221 | replace="structure relationships/@@+render-list"/> |
222 | </td> |
223 | + <td id="conflictsarch" |
224 | + tal:define="relationships view/build_conflicts_arch"> |
225 | + <h3>Platform-dependent build dependencies</h3> |
226 | + <tal:block tal:condition="relationships/has_items" |
227 | + replace="structure relationships/@@+render-list"/> |
228 | + </td> |
229 | </tr> |
230 | </table> |
231 | </div> |
232 | |
233 | === modified file 'lib/lp/soyuz/doc/package-relationship.txt' |
234 | --- lib/lp/soyuz/doc/package-relationship.txt 2015-07-29 16:55:28 +0000 |
235 | +++ lib/lp/soyuz/doc/package-relationship.txt 2016-01-12 17:05:26 +0000 |
236 | @@ -1,12 +1,16 @@ |
237 | = Package Relationship Model = |
238 | |
239 | We call "package relationship" the DSC field which describes relation |
240 | -between the package in question and others availble: |
241 | +between the package in question and others available: |
242 | |
243 | For sources DSC provides: |
244 | |
245 | * builddepends |
246 | * builddependsindep |
247 | + * builddependsarch |
248 | + * build_conflicts |
249 | + * build_conflicts_indep |
250 | + * build_conflicts_arch |
251 | |
252 | For binaries we have: |
253 | |
254 | |
255 | === modified file 'lib/lp/soyuz/doc/sourcepackagerelease.txt' |
256 | --- lib/lp/soyuz/doc/sourcepackagerelease.txt 2014-07-14 16:47:15 +0000 |
257 | +++ lib/lp/soyuz/doc/sourcepackagerelease.txt 2016-01-12 17:05:26 +0000 |
258 | @@ -143,6 +143,7 @@ |
259 | >>> archhintlist = 'any' |
260 | >>> builddepends = 'cdbs, debhelper (>= 4.1.0), libsysfs-dev, libhal-dev' |
261 | >>> builddependsindep = '' |
262 | + >>> builddependsarch = '' |
263 | >>> dsc_maintainer_rfc822 = 'Foo Bar <foo@bar.com>' |
264 | >>> dsc_standards_version = '2.6.1' |
265 | >>> dsc_format = '1.0' |
266 | @@ -155,11 +156,12 @@ |
267 | |
268 | >>> new_spr = hoary.createUploadedSourcePackageRelease( |
269 | ... arg_name, version, arg_maintainer, |
270 | - ... builddepends, builddependsindep, archhintlist, arg_comp, arg_creator, |
271 | - ... arg_urgency, changelog, changelog_entry, dsc, arg_key, arg_sect, |
272 | - ... dsc_maintainer_rfc822, dsc_standards_version, dsc_format, |
273 | - ... dsc_binaries, archive, copyright=copyright, |
274 | + ... builddepends, builddependsindep, builddependsarch, archhintlist, |
275 | + ... arg_comp, arg_creator, arg_urgency, changelog, changelog_entry, dsc, |
276 | + ... arg_key, arg_sect, dsc_maintainer_rfc822, dsc_standards_version, |
277 | + ... dsc_format, dsc_binaries, archive, copyright=copyright, |
278 | ... build_conflicts=None, build_conflicts_indep=None, |
279 | + ... build_conflicts_arch=None, |
280 | ... source_package_recipe_build=arg_recipebuild) |
281 | |
282 | >>> new_spr.upload_distroseries.name |
283 | |
284 | === modified file 'lib/lp/soyuz/interfaces/sourcepackagerelease.py' |
285 | --- lib/lp/soyuz/interfaces/sourcepackagerelease.py 2015-09-28 17:38:45 +0000 |
286 | +++ lib/lp/soyuz/interfaces/sourcepackagerelease.py 2016-01-12 17:05:26 +0000 |
287 | @@ -50,10 +50,15 @@ |
288 | "package depends to build"), |
289 | required=False) |
290 | builddependsindep = TextLine( |
291 | - title=_("DSC build depends"), |
292 | + title=_("DSC arch-independent build depends"), |
293 | description=_("Same as builddepends, but the list is of " |
294 | "arch-independent packages"), |
295 | required=False) |
296 | + builddependsarch = TextLine( |
297 | + title=_("DSC arch-dependent build depends"), |
298 | + description=_("Same as builddepends, but the list is of " |
299 | + "arch-dependent packages"), |
300 | + required=False) |
301 | build_conflicts = TextLine( |
302 | title=_("DSC build conflicts"), |
303 | description=_("Binaries that will conflict when building this " |
304 | @@ -64,6 +69,11 @@ |
305 | description=_("Same as build-conflicts but only lists " |
306 | "arch-independent binaries."), |
307 | required=False) |
308 | + build_conflicts_arch = TextLine( |
309 | + title=_("DSC arch-dependent build conflicts"), |
310 | + description=_("Same as build-conflicts but only lists " |
311 | + "arch-dependent binaries."), |
312 | + required=False) |
313 | architecturehintlist = TextLine( |
314 | title=_("Architecture Hint List"), |
315 | description=_( |
316 | |
317 | === modified file 'lib/lp/soyuz/model/sourcepackagerelease.py' |
318 | --- lib/lp/soyuz/model/sourcepackagerelease.py 2015-11-20 17:57:46 +0000 |
319 | +++ lib/lp/soyuz/model/sourcepackagerelease.py 2016-01-12 17:05:26 +0000 |
320 | @@ -99,8 +99,10 @@ |
321 | changelog_entry = StringCol(dbName='changelog_entry') |
322 | builddepends = StringCol(dbName='builddepends') |
323 | builddependsindep = StringCol(dbName='builddependsindep') |
324 | + builddependsarch = StringCol(dbName='builddependsarch') |
325 | build_conflicts = StringCol(dbName='build_conflicts') |
326 | build_conflicts_indep = StringCol(dbName='build_conflicts_indep') |
327 | + build_conflicts_arch = StringCol(dbName='build_conflicts_arch') |
328 | architecturehintlist = StringCol(dbName='architecturehintlist') |
329 | homepage = StringCol(dbName='homepage') |
330 | format = EnumCol(dbName='format', schema=SourcePackageType, |
331 | |
332 | === modified file 'lib/lp/soyuz/scripts/gina/handlers.py' |
333 | --- lib/lp/soyuz/scripts/gina/handlers.py 2015-05-20 11:31:11 +0000 |
334 | +++ lib/lp/soyuz/scripts/gina/handlers.py 2016-01-12 17:05:26 +0000 |
335 | @@ -624,8 +624,10 @@ |
336 | changelog_entry=src.changelog_entry, |
337 | builddepends=src.build_depends, |
338 | builddependsindep=src.build_depends_indep, |
339 | + builddependsarch=src.build_depends_arch, |
340 | build_conflicts=src.build_conflicts, |
341 | build_conflicts_indep=src.build_conflicts_indep, |
342 | + build_conflicts_arch=src.build_conflicts_arch, |
343 | architecturehintlist=src.architecture, |
344 | format=SourcePackageType.DPKG, |
345 | upload_distroseries=distroseries.id, |
346 | |
347 | === modified file 'lib/lp/soyuz/scripts/gina/packages.py' |
348 | --- lib/lp/soyuz/scripts/gina/packages.py 2015-12-07 21:49:16 +0000 |
349 | +++ lib/lp/soyuz/scripts/gina/packages.py 2016-01-12 17:05:26 +0000 |
350 | @@ -277,8 +277,10 @@ |
351 | # Defaults, potentially overwritten by __init__ |
352 | build_depends = "" |
353 | build_depends_indep = "" |
354 | + build_depends_arch = "" |
355 | build_conflicts = "" |
356 | build_conflicts_indep = "" |
357 | + build_conflicts_arch = "" |
358 | standards_version = "" |
359 | section = None |
360 | format = None |
361 | |
362 | === modified file 'lib/lp/soyuz/stories/soyuz/xx-distroseries-sources.txt' |
363 | --- lib/lp/soyuz/stories/soyuz/xx-distroseries-sources.txt 2015-11-30 04:18:39 +0000 |
364 | +++ lib/lp/soyuz/stories/soyuz/xx-distroseries-sources.txt 2016-01-12 17:05:26 +0000 |
365 | @@ -118,12 +118,12 @@ |
366 | ... 'http://launchpad.dev/ubuntu/breezy-autotest/+source/' |
367 | ... 'commercialpackage') |
368 | |
369 | -PackageRelationships, 'builddepends', 'builddependsindep', |
370 | -'build_conflicts' and 'build_conflicts_indep' for the source in |
371 | -question are provided in this page. |
372 | +PackageRelationships, 'builddepends', 'builddependsindep', 'builddependsarch', |
373 | +'build_conflicts', 'build_conflicts_indep', and 'build_conflicts_arch' for the |
374 | +source in question are provided in this page. |
375 | |
376 | -Even when the relationshipt section is empty they are presented, |
377 | -keeping the page format contant. |
378 | +Even when the relationship section is empty they are presented, |
379 | +keeping the page format constant. |
380 | |
381 | >>> depends_section = find_tag_by_id(browser.contents, 'depends') |
382 | >>> parse_relationship_section(str(depends_section)) |
383 | @@ -133,6 +133,10 @@ |
384 | >>> parse_relationship_section(str(dependsindep_section)) |
385 | EMPTY SECTION |
386 | |
387 | + >>> dependsarch_section = find_tag_by_id(browser.contents, 'dependsarch') |
388 | + >>> parse_relationship_section(str(dependsarch_section)) |
389 | + EMPTY SECTION |
390 | + |
391 | >>> conflicts_section = find_tag_by_id(browser.contents, 'conflicts') |
392 | >>> parse_relationship_section(str(conflicts_section)) |
393 | EMPTY SECTION |
394 | @@ -142,6 +146,11 @@ |
395 | >>> parse_relationship_section(str(conflictsindep_section)) |
396 | EMPTY SECTION |
397 | |
398 | + >>> conflictsarch_section = find_tag_by_id( |
399 | + ... browser.contents, 'conflictsarch') |
400 | + >>> parse_relationship_section(str(conflictsarch_section)) |
401 | + EMPTY SECTION |
402 | + |
403 | Let's inspect a page with non-empty relationships. |
404 | |
405 | >>> browser.open( |
406 | @@ -163,6 +172,10 @@ |
407 | LINK: "pmount" -> http://launchpad.dev/ubuntu/warty/+package/pmount |
408 | TEXT: "postgresql-client (>= 7.4)" |
409 | |
410 | + >>> dependsarch_section = find_tag_by_id(browser.contents, 'dependsarch') |
411 | + >>> parse_relationship_section(str(dependsarch_section)) |
412 | + EMPTY SECTION |
413 | + |
414 | >>> conflicts_section = find_tag_by_id(browser.contents, 'conflicts') |
415 | >>> parse_relationship_section(str(conflicts_section)) |
416 | TEXT: "gcc-4.0" |
417 | @@ -174,6 +187,11 @@ |
418 | TEXT: "gcc-4.0-base" |
419 | LINK: "pmount" -> http://launchpad.dev/ubuntu/warty/+package/pmount |
420 | |
421 | + >>> conflictsarch_section = find_tag_by_id( |
422 | + ... browser.contents, 'conflictsarch') |
423 | + >>> parse_relationship_section(str(conflictsarch_section)) |
424 | + EMPTY SECTION |
425 | + |
426 | |
427 | The '+changelog' page provides an aggregation of the changelogs for |
428 | SourcePackageReleases published in this DistroSeries. |
429 | |
430 | === modified file 'lib/lp/soyuz/tests/test_publishing.py' |
431 | --- lib/lp/soyuz/tests/test_publishing.py 2015-10-05 22:21:17 +0000 |
432 | +++ lib/lp/soyuz/tests/test_publishing.py 2016-01-12 17:05:26 +0000 |
433 | @@ -191,10 +191,11 @@ |
434 | urgency=SourcePackageUrgency.LOW, |
435 | scheduleddeletiondate=None, dateremoved=None, |
436 | distroseries=None, archive=None, builddepends=None, |
437 | - builddependsindep=None, architecturehintlist='all', |
438 | + builddependsindep=None, builddependsarch=None, |
439 | + architecturehintlist='all', |
440 | dsc_standards_version='3.6.2', dsc_format='1.0', |
441 | dsc_binaries='foo-bin', build_conflicts=None, |
442 | - build_conflicts_indep=None, |
443 | + build_conflicts_indep=None, build_conflicts_arch=None, |
444 | dsc_maintainer_rfc822='Foo Bar <foo@bar.com>', |
445 | maintainer=None, creator=None, date_uploaded=UTC_NOW, |
446 | spr_only=False, user_defined_fields=None): |
447 | @@ -231,8 +232,10 @@ |
448 | version=version, |
449 | builddepends=builddepends, |
450 | builddependsindep=builddependsindep, |
451 | + builddependsarch=builddependsarch, |
452 | build_conflicts=build_conflicts, |
453 | build_conflicts_indep=build_conflicts_indep, |
454 | + build_conflicts_arch=build_conflicts_arch, |
455 | architecturehintlist=architecturehintlist, |
456 | changelog=None, |
457 | changelog_entry=None, |
458 | |
459 | === modified file 'lib/lp/testing/factory.py' |
460 | --- lib/lp/testing/factory.py 2016-01-11 21:11:27 +0000 |
461 | +++ lib/lp/testing/factory.py 2016-01-12 17:05:26 +0000 |
462 | @@ -3575,9 +3575,10 @@ |
463 | creator=None, component=None, |
464 | section_name=None, urgency=None, |
465 | version=None, builddepends=None, |
466 | - builddependsindep=None, |
467 | + builddependsindep=None, builddependsarch=None, |
468 | build_conflicts=None, |
469 | build_conflicts_indep=None, |
470 | + build_conflicts_arch=None, |
471 | architecturehintlist='all', |
472 | dsc_maintainer_rfc822=None, |
473 | dsc_standards_version='3.6.2', |
474 | @@ -3643,8 +3644,10 @@ |
475 | version=version, |
476 | builddepends=builddepends, |
477 | builddependsindep=builddependsindep, |
478 | + builddependsarch=builddependsarch, |
479 | build_conflicts=build_conflicts, |
480 | build_conflicts_indep=build_conflicts_indep, |
481 | + build_conflicts_arch=build_conflicts_arch, |
482 | architecturehintlist=architecturehintlist, |
483 | changelog=changelog, |
484 | changelog_entry=changelog_entry, |
Superseded by https:/ /code.launchpad .net/~cjwatson/ launchpad/ build-depends- arch-user- defined/ +merge/ 285197.