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:

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

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/archive.py", line 470, in 
pull
    self._download_file_from_urls(urls, name, int(entry["size"]), 
dscverify=True)
  File "/usr/lib/python3/dist-packages/ubuntutools/archive.py", line 447, in 
_download_file_from_urls
    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
logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)

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

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.
https://bugs.launchpad.net/bugs/2025748

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/2025748/+subscriptions


-- 
universe-bugs mailing list
universe-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/universe-bugs

Reply via email to