Merge lp:~wgrant/launchpad/archive-debug-archive into lp:launchpad
Proposed by
William Grant
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~wgrant/launchpad/archive-debug-archive |
Merge into: | lp:launchpad |
Diff against target: |
151 lines 4 files modified
lib/lp/soyuz/interfaces/archive.py (+3/-0) lib/lp/soyuz/model/archive.py (+9/-0) lib/lp/soyuz/model/queue.py (+6/-10) lib/lp/soyuz/tests/test_archive.py (+53/-1) |
To merge this branch: | bzr merge lp:~wgrant/launchpad/archive-debug-archive |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eleanor Berger (community) | Approve | ||
Review via email: mp+13949@code.launchpad.net |
To post a comment you must log in.
= Summary =
For my ddebs-in-soyuz work, I need to be able to identify an archive's corresponding debug archive in many places. This is currently only done in lp.soyuz. model.queue.
== Proposed fix ==
Factor the calculation out into a property: IArchive. debug_archive.
== Pre-implementation notes ==
None.
== Implementation details ==
Nothing special.
== Tests ==
Added new tests in lp.soyuz. tests.test_ archive. TestCorrespondi ngDebugArchive, for each possible situation.
bin/test -vvt TestCorrespondi ngDebugArchive
== Demo and Q/A ==
This is purely a refactor; there is no functional change.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: soyuz/interface s/archive. py soyuz/model/ archive. py soyuz/model/ queue.py soyuz/tests/ test_archive. py
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Pylint notices ==
lib/lp/ soyuz/interface s/archive. py declarations' (No module named restful) fields' (No module named restful)
40: [F0401] Unable to import 'lazr.enum' (No module named enum)
53: [F0401] Unable to import 'lazr.restful.
59: [F0401] Unable to import 'lazr.restful.
lib/lp/ soyuz/model/ archive. py .event' (No module named lifecycle)
14: [F0401] Unable to import 'lazr.lifecycle
lib/lp/ soyuz/model/ queue.py
547: [C0301] Line too long (93/78)
562: [C0301] Line too long (80/78)