[sponsor-patch] Chokes on badly formatted changelog
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-dev-tools (Ubuntu) |
Fix Released
|
Medium
|
Stefano Rivera |
Bug Description
Sponsor-patch died horribly in the face of a broken changelog entry:
$ sponsor-patch -s 755954
sponsor-patch: https:/
1) opendrim-
2) opendrim-
To which Ubuntu tasks do the patch belong? 2
Branched 2 revision(s).
+N debian/patches/
+N debian/
+N debian/
M acinclude.m4
M debian/changelog
All changes applied successfully.
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
options.upload, workdir, options.verbose)
File "/usr/lib/
if update_
File "/usr/lib/
distribution = _get_distributi
File "/usr/lib/
return changelog.
File "/usr/lib/
distributions = property(lambda self: self._blocks[
IndexError: list index out of range
The changelog in question had no spaces before the first bulleted item. Don't know if this is something you want to catch. Using -e worked here, so maybe an error like this should drop the user into a shell to fix the source package?
sponsor-patch shouldn't crash. It should tell the user that the changelog entry is malformed and ask the user to fix it.