Merge lp:~james-w/launchpad/sync-source-negative-versions into lp:launchpad
Proposed by
James Westby
on 2010-01-05
| Status: | Merged |
|---|---|
| Approved by: | Graham Binns on 2010-01-05 |
| Approved revision: | not available |
| Merged at revision: | not available |
| Proposed branch: | lp:~james-w/launchpad/sync-source-negative-versions |
| Merge into: | lp:launchpad |
| Diff against target: |
48 lines (+8/-5) 2 files modified
lib/lp/soyuz/scripts/tests/test_sync_source.py (+2/-2) scripts/ftpmaster-tools/sync-source.py (+6/-3) |
| To merge this branch: | bzr merge lp:~james-w/launchpad/sync-source-negative-versions |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Graham Binns (community) | code | 2010-01-05 | Approve on 2010-01-05 |
|
Review via email:
|
|||
Commit Message
Handle '0' correctly in version numbers when syncing new packages.
To post a comment you must log in.
| James Westby (james-w) wrote : | # |
| Graham Binns (gmb) wrote : | # |
Hi James,
Can you link this branch to a bug? PQM gets upset if we don't supply a bug in the commit message.

Fixes a problem found by geser with syncing new packages
that have odd version numbers.
A version can be 0~bzr123-1 or similar, which comapares
to less than 0. However, 0 was being used to mean "not
in Ubuntu," so sync-source.py considered the package to be
absent.
This change makes it use a proper sentinel, None, when
the package is new, so we can't get caught out by odd
comparisons.
Thanks,
James