Merge lp:~cjwatson/launchpad/sync-source-section-priority-581697 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Julian Edwards |
Approved revision: | no longer in the source branch. |
Merged at revision: | 10870 |
Proposed branch: | lp:~cjwatson/launchpad/sync-source-section-priority-581697 |
Merge into: | lp:launchpad |
Diff against target: |
16 lines (+4/-2) 1 file modified
scripts/ftpmaster-tools/sync-source.py (+4/-2) |
To merge this branch: | bzr merge lp:~cjwatson/launchpad/sync-source-section-priority-581697 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Julian Edwards (community) | Approve | ||
Review via email: mp+25434@code.launchpad.net |
Commit message
If Section or Priority is missing from the Source stanza of debian/control, leave it as "-" in the generated .changes file rather than setting it to "None".
Description of the change
If Section or Priority is missing from the Source stanza of debian/control, leave it as "-" in the generated .changes file rather than setting it to "None".
Fixes bug 581697.
I haven't included any tests as sync-source.py in general is untested, and in any case is due to be replaced eventually with API calls which I don't think should have this problem. Test case is in the bug, reproducible with 'sync-source.py -S unstable bglibs' as the lp_archive user on cocoplum with ~lp_archive/syncs/ as the current directory (or another Soyuz instance that has Debian_
Thanks for the fix Colin. I'll land this with a small style tweak as it's LP style to not compare for None like that, we do an explicit check. Your code then becomes:
if section is not None:
source_section = section
for example.