Merge lp:~stevenk/launchpad/deal-with-badly-formed-section into lp:launchpad
Proposed by
Steve Kowalik
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Steve Kowalik | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 16008 | ||||
Proposed branch: | lp:~stevenk/launchpad/deal-with-badly-formed-section | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
201 lines (+90/-27) 5 files modified
lib/lp/archiveuploader/changesfile.py (+7/-2) lib/lp/archiveuploader/nascentuploadfile.py (+3/-3) lib/lp/archiveuploader/tests/data/suite/bar_1.0-1_malformed_section/bar_1.0-1.dsc (+21/-0) lib/lp/archiveuploader/tests/data/suite/bar_1.0-1_malformed_section/bar_1.0-1_source.changes (+30/-0) lib/lp/archiveuploader/tests/test_uploadprocessor.py (+29/-22) |
||||
To merge this branch: | bzr merge lp:~stevenk/launchpad/deal-with-badly-formed-section | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Review via email: mp+125908@code.launchpad.net |
Commit message
Deal with an inability to parse the file lines from the changes file, and reject the upload.
Description of the change
Deal with an inability to parse the file lines from the changes file. This also means we can't give any context to the user since it's far too early. Given the fields present it is only going to be component, section that are going to trip this up.
dpkg-genchanges also has a bug due to this due to accepting a Section that has a space in it.
I have tried to get this branch loc negative, but will take the ten line hit, I've clawed some of it back.
To post a comment you must log in.
14 + yield UploadError("Unable to parse file line, check section.")
That's pretty vague, misleading, and looks bad. Perhaps "Wrong number of fields in Files line in .changes."?
I'd also really prefer that we stopped creating malformed uploads for this. Unit tests are good.