syncpackage reports wrong url for 404

Bug #881049 reported by Barry Warsaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Developer Tools
New
Undecided
Unassigned
ubuntu-dev-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ syncpackage -d sid pylint
syncpackage: Source pylint -> precise/Release: current version 0.24.0-1, new version 0.25.0-1
Unable to connect to http://packages.debian.org/: HTTP Error 404: Not Found
Traceback (most recent call last):
  File "/usr/bin/syncpackage", line 644, in <module>
    main()
  File "/usr/bin/syncpackage", line 636, in main
    options.force)
  File "/usr/bin/syncpackage", line 368, in copy
    changes = get_debian_changelog(debian_spph, base_version).strip()
AttributeError: 'NoneType' object has no attribute 'strip'

So, one problem is that copy() can't handle None coming back from get_debian_changelog(). It should probably die more gracefully. The other problem is that the 404'ing url being complained about is not the actual url that it tried, so you don't really know what's failing.

Related branches

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.