Wrong print format in http method
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dput (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: dput
When trying to upload a package using a not allowed method (http in my case), dput crashes with the following message:
#
Uploading to lp (via http to ppa.launchpad.net):
Uploading tkgate_
File "/usr/bin/dput", line 938, in <module>
main()
File "/usr/bin/dput", line 900, in main
files_
File "/usr/share/
print "Upload failed: %d %d"% (res.status, res.reason)
TypeError: %d format: a number is required, not str
#
Changing the line to:
print "Upload failed:", res.status, res.reason
Shows the following:
Uploading tkgate_
I think I fixed it on my branch:
lp:~erosa/+junk/dput-fix-380940
I've also attached a patch for the current jaunty branch.