pull-debian-source: error message not helpful

Bug #1997958 reported by Heinrich Schuchardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

When using pull-debian-source on Ubuntu Lunar I saw the error below. This output is not helpful for the user. Please, provide a message indicating the URL that failed instead of the stacktrace.

$ pull-debian-source opensbi sid
Found opensbi 1.1-2 in sid
Traceback (most recent call last):
  File "/usr/bin/pull-debian-source", line 11, in <module>
    PullPkg.main(distro='debian', pull='source')
  File "/usr/lib/python3/dist-packages/ubuntutools/pullpkg.py", line 107, in main
    cls(*args, **kwargs).pull()
  File "/usr/lib/python3/dist-packages/ubuntutools/pullpkg.py", line 429, in pull
    srcpkg.pull()
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 438, in pull
    Path(self.dsc_pathname).write_bytes(self.dsc.raw_text)
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 294, in dsc
    self._download_file_from_urls(urls, tmpdsc)
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 410, in _download_file_from_urls
    for url in urls:
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 598, in _source_urls
    for url in super(DebianSourcePackage, self)._source_urls(name):
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 335, in _source_urls
    yield self._mirror_url(server, self.component, name)
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 593, in component
    self._component = Snapshot.getComponent(self.source, self.version)
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 941, in getComponent
    response = self.load("{}?fileinfo=1".format(url))
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 887, in load
    with closing(urlopen(url)) as data:
  File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: NOT FOUND

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.