Merge lp:~james-w/launchpad/sync-source-negative-versions into lp:launchpad
Proposed by
James Westby
Status: | Merged |
---|---|
Approved by: | Graham Binns |
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 | Approve | |
Review via email: mp+16861@code.launchpad.net |
Commit message
Handle '0' correctly in version numbers when syncing new packages.
To post a comment you must log in.
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