Merge lp:~jelmer/launchpad/521110-use-python-debian-debversion into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Jelmer Vernooij on 2010-08-12 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11328 |
| Proposed branch: | lp:~jelmer/launchpad/521110-use-python-debian-debversion |
| Merge into: | lp:launchpad |
| Diff against target: |
611 lines (+70/-401) 5 files modified
lib/lp/archivepublisher/debversion.py (+46/-138) lib/lp/archivepublisher/tests/test_debversion.py (+21/-260) lib/lp/registry/browser/tests/distroseries-views.txt (+1/-1) lib/lp/registry/interfaces/distroseries.py (+1/-1) lib/lp/soyuz/doc/distroseriesqueue-dist-upgrader.txt (+1/-1) |
| To merge this branch: | bzr merge lp:~jelmer/launchpad/521110-use-python-debian-debversion |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Abel Deuring (community) | code | 2010-07-29 | Approve on 2010-07-30 |
|
Review via email:
|
|||
Commit Message
Use python-debian for Debian version comparisons.
Description of the Change
This changes Launchpad to use the Debian version comparison logic that is already present in python-debian.
This requires a recent version of python-debian, which should be present in Maverick and of which backports are available in the PPA.
| Jelmer Vernooij (jelmer) wrote : | # |
| Abel Deuring (adeuring) wrote : | # |
Hi Jelmer,
the branch looks good.
Just two nitpicks:
- As discussed on IrC, we dont need the new symlinks lib/deb822.py and lib/debian
- line 41 of the diff (doc string of class Version) contains trailing spaces. Please remove them
"make lint" has a few more complaints:
./lib/lp/
25: E302 expected 2 blank lines, found 0
25: E701 multiple statements on one line (colon)
26: E302 expected 2 blank lines, found 0
26: E701 multiple statements on one line (colon)
27: E302 expected 2 blank lines, found 0
27: E701 multiple statements on one line (colon)
28: E302 expected 2 blank lines, found 0
28: E701 multiple statements on one line (colon)
33: W291 trailing whitespace
47: E301 expected 1 blank line, found 0
51: W602 deprecated form of raising exception
56: W602 deprecated form of raising exception
60: W602 deprecated form of raising exception
62: W602 deprecated form of raising exception
71: W602 deprecated form of raising exception
33: Line has trailing whitespace.
Could you plase fix this?

I've removed the functionality in the existing debversion.py that we do not use.