Merge lp://staging/~julian-edwards/launchpad/publish-copy-archives-bug-520520 into lp://staging/launchpad
- publish-copy-archives-bug-520520
- Merge into devel
Proposed by
Julian Edwards
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp://staging/~julian-edwards/launchpad/publish-copy-archives-bug-520520 |
Merge into: | lp://staging/launchpad |
Diff against target: |
289 lines (+71/-64) 2 files modified
lib/lp/soyuz/adapters/archivedependencies.py (+35/-28) lib/lp/soyuz/doc/archive-dependencies.txt (+36/-36) |
To merge this branch: | bzr merge lp://staging/~julian-edwards/launchpad/publish-copy-archives-bug-520520 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Hummer (community) | code | Approve | |
Review via email: mp+19621@code.staging.launchpad.net |
Commit message
Change the ordering of the dependencies for builds to something that makes more sense.
Description of the change
To post a comment you must log in.
Revision history for this message
Julian Edwards (julian-edwards) wrote : | # |
Revision history for this message
Paul Hummer (rockstar) wrote : | # |
This all looks good. Thanks for the branch!
review:
Approve
(code)
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'lib/lp/soyuz/adapters/archivedependencies.py' | |||
2 | --- lib/lp/soyuz/adapters/archivedependencies.py 2010-01-15 04:03:26 +0000 | |||
3 | +++ lib/lp/soyuz/adapters/archivedependencies.py 2010-02-18 15:35:24 +0000 | |||
4 | @@ -119,23 +119,40 @@ | |||
5 | 119 | def get_sources_list_for_building(build, distroarchseries, sourcepackagename): | 119 | def get_sources_list_for_building(build, distroarchseries, sourcepackagename): |
6 | 120 | """Return the sources_list entries required to build the given item. | 120 | """Return the sources_list entries required to build the given item. |
7 | 121 | 121 | ||
8 | 122 | The entries are returned in the order that is most useful; | ||
9 | 123 | 1. the context archive itself | ||
10 | 124 | 2. external dependencies | ||
11 | 125 | 3. user-selected archive dependencies | ||
12 | 126 | 4. the default primary archive | ||
13 | 127 | |||
14 | 122 | :param build: a context `IBuild`. | 128 | :param build: a context `IBuild`. |
15 | 123 | :param distroarchseries: A `IDistroArchSeries` | 129 | :param distroarchseries: A `IDistroArchSeries` |
16 | 124 | :param sourcepackagename: A source package name (as text) | 130 | :param sourcepackagename: A source package name (as text) |
17 | 125 | :return: a deb sources_list entries (lines). | 131 | :return: a deb sources_list entries (lines). |
18 | 126 | """ | 132 | """ |
19 | 127 | deps = [] | 133 | deps = [] |
27 | 128 | 134 | sources_list_lines = [] | |
28 | 129 | # Consider primary archive dependency override. Add the default | 135 | |
29 | 130 | # primary archive dependencies if it's not present. | 136 | # Add implicit self-dependency for non-primary contexts. |
30 | 131 | if build.archive.getArchiveDependency( | 137 | if build.archive.purpose in ALLOW_RELEASE_BUILDS: |
31 | 132 | build.archive.distribution.main_archive) is None: | 138 | self_dep = [( |
32 | 133 | primary_dependencies = _get_default_primary_dependencies(build) | 139 | build.archive, PackagePublishingPocket.RELEASE, |
33 | 134 | deps.extend(primary_dependencies) | 140 | get_components_for_building(build))] |
34 | 141 | sources_list_lines = _get_sources_list_for_dependencies( | ||
35 | 142 | self_dep, distroarchseries) | ||
36 | 143 | |||
37 | 144 | # Append external sources_list lines for this archive if it's | ||
38 | 145 | # specified in the configuration. | ||
39 | 146 | dependencies = build.archive.external_dependencies | ||
40 | 147 | if dependencies is not None: | ||
41 | 148 | for archive_dep in dependencies.splitlines(): | ||
42 | 149 | line = archive_dep % ( | ||
43 | 150 | {'series': distroarchseries.distroseries.name}) | ||
44 | 151 | sources_list_lines.append(line) | ||
45 | 135 | 152 | ||
46 | 136 | # Consider user-selected archive dependencies. | 153 | # Consider user-selected archive dependencies. |
49 | 137 | primary_component = get_primary_current_component(build.archive, | 154 | primary_component = get_primary_current_component( |
50 | 138 | build.distroseries, sourcepackagename) | 155 | build.archive, build.distroseries, sourcepackagename) |
51 | 139 | for archive_dependency in build.archive.dependencies: | 156 | for archive_dependency in build.archive.dependencies: |
52 | 140 | # When the dependency component is undefined, we should use | 157 | # When the dependency component is undefined, we should use |
53 | 141 | # the component where the source is published in the primary | 158 | # the component where the source is published in the primary |
54 | @@ -151,25 +168,15 @@ | |||
55 | 151 | (archive_dependency.dependency, pocket, components) | 168 | (archive_dependency.dependency, pocket, components) |
56 | 152 | ) | 169 | ) |
57 | 153 | 170 | ||
77 | 154 | # Add implicit self-dependency for non-primary contexts. | 171 | # Consider primary archive dependency override. Add the default |
78 | 155 | if build.archive.purpose in ALLOW_RELEASE_BUILDS: | 172 | # primary archive dependencies if it's not present. |
79 | 156 | deps.append( | 173 | if build.archive.getArchiveDependency( |
80 | 157 | (build.archive, PackagePublishingPocket.RELEASE, | 174 | build.archive.distribution.main_archive) is None: |
81 | 158 | get_components_for_building(build)) | 175 | primary_dependencies = _get_default_primary_dependencies(build) |
82 | 159 | ) | 176 | deps.extend(primary_dependencies) |
83 | 160 | 177 | ||
84 | 161 | sources_list_lines = _get_sources_list_for_dependencies( | 178 | sources_list_lines.extend( |
85 | 162 | deps, distroarchseries) | 179 | _get_sources_list_for_dependencies(deps, distroarchseries)) |
67 | 163 | |||
68 | 164 | # Append external sources_list lines for this archive if it's | ||
69 | 165 | # specified in the configuration. | ||
70 | 166 | dependencies = build.archive.external_dependencies | ||
71 | 167 | if dependencies is not None: | ||
72 | 168 | for archive_dep in dependencies.splitlines(): | ||
73 | 169 | line = archive_dep % ( | ||
74 | 170 | {'series': distroarchseries.distroseries.name}) | ||
75 | 171 | sources_list_lines.append(line) | ||
76 | 172 | |||
86 | 173 | return sources_list_lines | 180 | return sources_list_lines |
87 | 174 | 181 | ||
88 | 175 | def _has_published_binaries(archive, distroarchseries, pocket): | 182 | def _has_published_binaries(archive, distroarchseries, pocket): |
89 | 176 | 183 | ||
90 | === modified file 'lib/lp/soyuz/doc/archive-dependencies.txt' | |||
91 | --- lib/lp/soyuz/doc/archive-dependencies.txt 2010-01-16 09:41:17 +0000 | |||
92 | +++ lib/lp/soyuz/doc/archive-dependencies.txt 2010-02-18 15:35:24 +0000 | |||
93 | @@ -207,7 +207,7 @@ | |||
94 | 207 | >>> def print_building_sources_list(candidate): | 207 | >>> def print_building_sources_list(candidate): |
95 | 208 | ... sources_list = get_sources_list_for_building(candidate, | 208 | ... sources_list = get_sources_list_for_building(candidate, |
96 | 209 | ... candidate.distroarchseries, candidate.sourcepackagerelease.name) | 209 | ... candidate.distroarchseries, candidate.sourcepackagerelease.name) |
98 | 210 | ... for line in sorted(sources_list): | 210 | ... for line in sources_list: |
99 | 211 | ... print line | 211 | ... print line |
100 | 212 | 212 | ||
101 | 213 | Note that only the default ubuntu dependencies for a public PPA will be | 213 | Note that only the default ubuntu dependencies for a public PPA will be |
102 | @@ -240,13 +240,13 @@ | |||
103 | 240 | ... status=PackagePublishingStatus.PUBLISHED) | 240 | ... status=PackagePublishingStatus.PUBLISHED) |
104 | 241 | 241 | ||
105 | 242 | >>> print_building_sources_list(a_build) | 242 | >>> print_building_sources_list(a_build) |
106 | 243 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | ||
107 | 243 | deb http://ftpmaster.internal/ubuntu hoary | 244 | deb http://ftpmaster.internal/ubuntu hoary |
108 | 244 | main restricted universe multiverse | 245 | main restricted universe multiverse |
109 | 245 | deb http://ftpmaster.internal/ubuntu hoary-security | 246 | deb http://ftpmaster.internal/ubuntu hoary-security |
110 | 246 | main restricted universe multiverse | 247 | main restricted universe multiverse |
111 | 247 | deb http://ftpmaster.internal/ubuntu hoary-updates | 248 | deb http://ftpmaster.internal/ubuntu hoary-updates |
112 | 248 | main restricted universe multiverse | 249 | main restricted universe multiverse |
113 | 249 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | ||
114 | 250 | 250 | ||
115 | 251 | Similarly, populated PPA dependencies are listed in the building | 251 | Similarly, populated PPA dependencies are listed in the building |
116 | 252 | 'sources_list'. | 252 | 'sources_list'. |
117 | @@ -261,14 +261,14 @@ | |||
118 | 261 | ... getUtility(IComponentSet)['main']) | 261 | ... getUtility(IComponentSet)['main']) |
119 | 262 | 262 | ||
120 | 263 | >>> print_building_sources_list(a_build) | 263 | >>> print_building_sources_list(a_build) |
121 | 264 | deb http://ftpmaster.internal/ubuntu hoary | ||
122 | 265 | main restricted universe multiverse | ||
123 | 266 | deb http://ftpmaster.internal/ubuntu hoary-security | ||
124 | 267 | main restricted universe multiverse | ||
125 | 268 | deb http://ftpmaster.internal/ubuntu hoary-updates | ||
126 | 269 | main restricted universe multiverse | ||
127 | 270 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | 264 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main |
128 | 271 | deb http://ppa.launchpad.dev/mark/ppa/ubuntu hoary main | 265 | deb http://ppa.launchpad.dev/mark/ppa/ubuntu hoary main |
129 | 266 | deb http://ftpmaster.internal/ubuntu hoary | ||
130 | 267 | main restricted universe multiverse | ||
131 | 268 | deb http://ftpmaster.internal/ubuntu hoary-security | ||
132 | 269 | main restricted universe multiverse | ||
133 | 270 | deb http://ftpmaster.internal/ubuntu hoary-updates | ||
134 | 271 | main restricted universe multiverse | ||
135 | 272 | 272 | ||
136 | 273 | The authentication information gets added for private PPA | 273 | The authentication information gets added for private PPA |
137 | 274 | dependencies. | 274 | dependencies. |
138 | @@ -277,6 +277,7 @@ | |||
139 | 277 | >>> mark.archive.private = True | 277 | >>> mark.archive.private = True |
140 | 278 | 278 | ||
141 | 279 | >>> print_building_sources_list(a_build) | 279 | >>> print_building_sources_list(a_build) |
142 | 280 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | ||
143 | 280 | deb http://buildd:not-so-secret@private-ppa.launchpad.dev/mark/ppa/ubuntu | 281 | deb http://buildd:not-so-secret@private-ppa.launchpad.dev/mark/ppa/ubuntu |
144 | 281 | hoary main | 282 | hoary main |
145 | 282 | deb http://ftpmaster.internal/ubuntu hoary | 283 | deb http://ftpmaster.internal/ubuntu hoary |
146 | @@ -285,7 +286,6 @@ | |||
147 | 285 | main restricted universe multiverse | 286 | main restricted universe multiverse |
148 | 286 | deb http://ftpmaster.internal/ubuntu hoary-updates | 287 | deb http://ftpmaster.internal/ubuntu hoary-updates |
149 | 287 | main restricted universe multiverse | 288 | main restricted universe multiverse |
150 | 288 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | ||
151 | 289 | 289 | ||
152 | 290 | Good enough, let's delete the archive dependency on Mark's PPA. | 290 | Good enough, let's delete the archive dependency on Mark's PPA. |
153 | 291 | 291 | ||
154 | @@ -306,13 +306,13 @@ | |||
155 | 306 | dependencies. | 306 | dependencies. |
156 | 307 | 307 | ||
157 | 308 | >>> print_building_sources_list(a_build) | 308 | >>> print_building_sources_list(a_build) |
158 | 309 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | ||
159 | 309 | deb http://ftpmaster.internal/ubuntu hoary | 310 | deb http://ftpmaster.internal/ubuntu hoary |
160 | 310 | main restricted universe multiverse | 311 | main restricted universe multiverse |
161 | 311 | deb http://ftpmaster.internal/ubuntu hoary-security | 312 | deb http://ftpmaster.internal/ubuntu hoary-security |
162 | 312 | main restricted universe multiverse | 313 | main restricted universe multiverse |
163 | 313 | deb http://ftpmaster.internal/ubuntu hoary-updates | 314 | deb http://ftpmaster.internal/ubuntu hoary-updates |
164 | 314 | main restricted universe multiverse | 315 | main restricted universe multiverse |
165 | 315 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | ||
166 | 316 | 316 | ||
167 | 317 | The default build behaviour will remain unchanged when we override the | 317 | The default build behaviour will remain unchanged when we override the |
168 | 318 | default primary archive dependencies with exactly the same values. | 318 | default primary archive dependencies with exactly the same values. |
169 | @@ -322,13 +322,13 @@ | |||
170 | 322 | ... getUtility(IComponentSet)['multiverse']) | 322 | ... getUtility(IComponentSet)['multiverse']) |
171 | 323 | 323 | ||
172 | 324 | >>> print_building_sources_list(a_build) | 324 | >>> print_building_sources_list(a_build) |
173 | 325 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | ||
174 | 325 | deb http://ftpmaster.internal/ubuntu hoary | 326 | deb http://ftpmaster.internal/ubuntu hoary |
175 | 326 | main restricted universe multiverse | 327 | main restricted universe multiverse |
176 | 327 | deb http://ftpmaster.internal/ubuntu hoary-security | 328 | deb http://ftpmaster.internal/ubuntu hoary-security |
177 | 328 | main restricted universe multiverse | 329 | main restricted universe multiverse |
178 | 329 | deb http://ftpmaster.internal/ubuntu hoary-updates | 330 | deb http://ftpmaster.internal/ubuntu hoary-updates |
179 | 330 | main restricted universe multiverse | 331 | main restricted universe multiverse |
180 | 331 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | ||
181 | 332 | 332 | ||
182 | 333 | >>> cprov.archive.removeArchiveDependency(ubuntu.main_archive) | 333 | >>> cprov.archive.removeArchiveDependency(ubuntu.main_archive) |
183 | 334 | 334 | ||
184 | @@ -349,11 +349,11 @@ | |||
185 | 349 | universe | 349 | universe |
186 | 350 | 350 | ||
187 | 351 | >>> print_building_sources_list(a_build) | 351 | >>> print_building_sources_list(a_build) |
188 | 352 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | ||
189 | 352 | deb http://ftpmaster.internal/ubuntu hoary | 353 | deb http://ftpmaster.internal/ubuntu hoary |
190 | 353 | main universe | 354 | main universe |
191 | 354 | deb http://ftpmaster.internal/ubuntu hoary-security | 355 | deb http://ftpmaster.internal/ubuntu hoary-security |
192 | 355 | main universe | 356 | main universe |
193 | 356 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | ||
194 | 357 | 357 | ||
195 | 358 | >>> cprov.archive.removeArchiveDependency(ubuntu.main_archive) | 358 | >>> cprov.archive.removeArchiveDependency(ubuntu.main_archive) |
196 | 359 | 359 | ||
197 | @@ -366,8 +366,8 @@ | |||
198 | 366 | ... getUtility(IComponentSet)['restricted']) | 366 | ... getUtility(IComponentSet)['restricted']) |
199 | 367 | 367 | ||
200 | 368 | >>> print_building_sources_list(a_build) | 368 | >>> print_building_sources_list(a_build) |
201 | 369 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | ||
202 | 369 | deb http://ftpmaster.internal/ubuntu hoary main restricted | 370 | deb http://ftpmaster.internal/ubuntu hoary main restricted |
203 | 370 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | ||
204 | 371 | 371 | ||
205 | 372 | >>> cprov.archive.removeArchiveDependency(ubuntu.main_archive) | 372 | >>> cprov.archive.removeArchiveDependency(ubuntu.main_archive) |
206 | 373 | 373 | ||
207 | @@ -379,15 +379,15 @@ | |||
208 | 379 | ... getUtility(IComponentSet)['multiverse']) | 379 | ... getUtility(IComponentSet)['multiverse']) |
209 | 380 | 380 | ||
210 | 381 | >>> print_building_sources_list(a_build) | 381 | >>> print_building_sources_list(a_build) |
211 | 382 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | ||
212 | 382 | deb http://ftpmaster.internal/ubuntu hoary | 383 | deb http://ftpmaster.internal/ubuntu hoary |
213 | 383 | main restricted universe multiverse | 384 | main restricted universe multiverse |
214 | 385 | deb http://ftpmaster.internal/ubuntu hoary-security | ||
215 | 386 | main restricted universe multiverse | ||
216 | 387 | deb http://ftpmaster.internal/ubuntu hoary-updates | ||
217 | 388 | main restricted universe multiverse | ||
218 | 384 | deb http://ftpmaster.internal/ubuntu hoary-proposed | 389 | deb http://ftpmaster.internal/ubuntu hoary-proposed |
219 | 385 | main restricted universe multiverse | 390 | main restricted universe multiverse |
220 | 386 | deb http://ftpmaster.internal/ubuntu hoary-security | ||
221 | 387 | main restricted universe multiverse | ||
222 | 388 | deb http://ftpmaster.internal/ubuntu hoary-updates | ||
223 | 389 | main restricted universe multiverse | ||
224 | 390 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | ||
225 | 391 | 391 | ||
226 | 392 | >>> cprov.archive.removeArchiveDependency(ubuntu.main_archive) | 392 | >>> cprov.archive.removeArchiveDependency(ubuntu.main_archive) |
227 | 393 | 393 | ||
228 | @@ -398,15 +398,15 @@ | |||
229 | 398 | ... getUtility(IComponentSet)['multiverse']) | 398 | ... getUtility(IComponentSet)['multiverse']) |
230 | 399 | 399 | ||
231 | 400 | >>> print_building_sources_list(a_build) | 400 | >>> print_building_sources_list(a_build) |
232 | 401 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | ||
233 | 401 | deb http://ftpmaster.internal/ubuntu hoary | 402 | deb http://ftpmaster.internal/ubuntu hoary |
234 | 402 | main restricted universe multiverse | 403 | main restricted universe multiverse |
235 | 404 | deb http://ftpmaster.internal/ubuntu hoary-security | ||
236 | 405 | main restricted universe multiverse | ||
237 | 406 | deb http://ftpmaster.internal/ubuntu hoary-updates | ||
238 | 407 | main restricted universe multiverse | ||
239 | 403 | deb http://ftpmaster.internal/ubuntu hoary-backports | 408 | deb http://ftpmaster.internal/ubuntu hoary-backports |
240 | 404 | main restricted universe multiverse | 409 | main restricted universe multiverse |
241 | 405 | deb http://ftpmaster.internal/ubuntu hoary-security | ||
242 | 406 | main restricted universe multiverse | ||
243 | 407 | deb http://ftpmaster.internal/ubuntu hoary-updates | ||
244 | 408 | main restricted universe multiverse | ||
245 | 409 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | ||
246 | 410 | 410 | ||
247 | 411 | >>> cprov.archive.removeArchiveDependency(ubuntu.main_archive) | 411 | >>> cprov.archive.removeArchiveDependency(ubuntu.main_archive) |
248 | 412 | 412 | ||
249 | @@ -432,13 +432,13 @@ | |||
250 | 432 | >>> [partner_build] = pub_source.createMissingBuilds() | 432 | >>> [partner_build] = pub_source.createMissingBuilds() |
251 | 433 | 433 | ||
252 | 434 | >>> print_building_sources_list(partner_build) | 434 | >>> print_building_sources_list(partner_build) |
253 | 435 | deb http://ftpmaster.internal/ubuntu hoary | ||
254 | 436 | main restricted universe multiverse | ||
255 | 437 | deb http://ftpmaster.internal/ubuntu hoary-security | ||
256 | 438 | main restricted universe multiverse | ||
257 | 439 | deb http://ftpmaster.internal/ubuntu hoary-updates | ||
258 | 440 | main restricted universe multiverse | ||
259 | 441 | deb http://ftpmaster.internal/ubuntu-partner hoary partner | 435 | deb http://ftpmaster.internal/ubuntu-partner hoary partner |
260 | 436 | deb http://ftpmaster.internal/ubuntu hoary | ||
261 | 437 | main restricted universe multiverse | ||
262 | 438 | deb http://ftpmaster.internal/ubuntu hoary-security | ||
263 | 439 | main restricted universe multiverse | ||
264 | 440 | deb http://ftpmaster.internal/ubuntu hoary-updates | ||
265 | 441 | main restricted universe multiverse | ||
266 | 442 | 442 | ||
267 | 443 | 443 | ||
268 | 444 | == External build dependencies == | 444 | == External build dependencies == |
269 | @@ -466,14 +466,14 @@ | |||
270 | 466 | Now builds in Celso's PPA will use the external dependencies. | 466 | Now builds in Celso's PPA will use the external dependencies. |
271 | 467 | 467 | ||
272 | 468 | >>> print_building_sources_list(a_build) | 468 | >>> print_building_sources_list(a_build) |
273 | 469 | deb http://ftpmaster.internal/ubuntu hoary | ||
274 | 470 | main restricted universe multiverse | ||
275 | 471 | deb http://ftpmaster.internal/ubuntu hoary-security | ||
276 | 472 | main restricted universe multiverse | ||
277 | 473 | deb http://ftpmaster.internal/ubuntu hoary-updates | ||
278 | 474 | main restricted universe multiverse | ||
279 | 475 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main | 469 | deb http://ppa.launchpad.dev/cprov/ppa/ubuntu hoary main |
280 | 470 | deb http://user:pass@repository zoing everything | ||
281 | 476 | deb http://user:pass@repository hoary public private | 471 | deb http://user:pass@repository hoary public private |
282 | 477 | deb http://user:pass@repository hoary-extra public | 472 | deb http://user:pass@repository hoary-extra public |
284 | 478 | deb http://user:pass@repository zoing everything | 473 | deb http://ftpmaster.internal/ubuntu hoary |
285 | 474 | main restricted universe multiverse | ||
286 | 475 | deb http://ftpmaster.internal/ubuntu hoary-security | ||
287 | 476 | main restricted universe multiverse | ||
288 | 477 | deb http://ftpmaster.internal/ubuntu hoary-updates | ||
289 | 478 | main restricted universe multiverse | ||
290 | 479 | 479 |
= Summary =
Change the ordering of the dependencies for builds to something that makes
more sense.
== Proposed fix ==
When we send builds to the build slaves, we tell the chroot exactly what
sources.list it needs to install before pulling in build dependencies. The
ordering of that file has a bearing on what packages get installed if two
repos have the same version of something.
This branch makes that ordering sensible and determinate.
== Pre-implementation notes ==
This is the first part of the fix for bug 520520.
== Implementation details ==
The entries are returned in the order that is most useful;
1. the context archive itself
2. external dependencies
3. user-selected archive dependencies
4. the default primary archive
This is a simple fix in the get_sources_ list_for_ building( ) function.
== Tests == dependencies. txt
bin/test -cvvt archive-
== Demo and Q/A ==
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: soyuz/doc/ archive- dependencies. txt soyuz/adapters/ archivedependen cies.py
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ soyuz/adapters/ archivedependen cies.py
43: [F0401] Unable to import 'lazr.uri' (No module named uri)