Public bug reported:

src:ubuntu-dev-tools 0.193ubuntu4~20.04.2 regressed behaviour in how
python3-ubuntutools downloads source packages from Launchpad. This is
currently breaking the git-ubuntu importer, causing it to fail to update
repositories for some packages, since the git-ubuntu snap is based on
Focal and has been rebuilt since. The most recent version of the git-
ubuntu snap for amd64 that does not exhibit the problem is r1212.

Steps to reproduce:

from ubuntutools.archive import UbuntuSourcePackage
pkg=UbuntuSourcePackage(package='ffc', version='0.7.0-1')

Actual results:

File ffc_0.7.0-1.diff.gz incorrect size, got 53464 expected 13021
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/ubuntutools/", line 470, in 
    self._download_file_from_urls(urls, name, int(entry["size"]), 
  File "/usr/lib/python3/dist-packages/ubuntutools/", line 447, in 
    raise DownloadError(f"Failed to download {filename}")
ubuntutools.misc.DownloadError: Failed to download ffc_0.7.0-1.diff.gz

Expected results: no output and no error.

You may also want to add the lines:

import logging

to help with debugging, but it is not necessary to reproduce the

With python3-ubuntutools 0.176ubuntu20.04.1 this works
With python3-ubuntutools 0.193ubuntu4~20.04.2 this fails.
I think 0.193ubuntu4~20.04.1 was never published to focal-updates.

** Affects: ubuntu-dev-tools (Ubuntu)
     Importance: Medium
         Status: Triaged

** Affects: ubuntu-dev-tools (Ubuntu Focal)
     Importance: Critical
         Status: Triaged

** Tags: regression-update

You received this bug notification because you are a member of MOTU,
which is subscribed to ubuntu-dev-tools in Ubuntu.

  Launchpad downloads fail with "incorrect size, got X expected Y"

To manage notifications about this bug go to:

universe-bugs mailing list

Reply via email to