backportpackage fails when the lsb_release Python module is not available

Bug #1991828 reported by Dan Bungert
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Debian)
Fix Released
Unknown
ubuntu-dev-tools (Ubuntu)
Fix Released
Undecided
Mattia Rizzolo

Bug Description

Imported from Debian bug http://bugs.debian.org/1020901:

Package: ubuntu-dev-tools
Version: 0.190
Tags: patch

`backportpackage` currently fails when the `lsb_release` Python module
is not available, as it is the case since 2022-09-26 in Debian unstable.

The attached patch makes `backportpackage` use the `lsb_release` command
when the namesake Python module is not available.

https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1020901;filename=0001-backportpackage-Run-lsb_release-as-command-if-the-Py.patch;msg=5

Dan Bungert (dbungert)
description: updated
Changed in ubuntu-dev-tools (Debian):
importance: Undecided → Unknown
Revision history for this message
Mattia Rizzolo (mapreri) wrote :

I uploaded a fix to debian, though I forgot to include this LP bug number in the changelog.

since 0.191 is only bugfix I plan to sync it once it's possible.

Changed in ubuntu-dev-tools (Ubuntu):
assignee: nobody → Mattia Rizzolo (mapreri)
status: New → In Progress
Changed in ubuntu-dev-tools (Debian):
status: New → Fix Released
Revision history for this message
Mattia Rizzolo (mapreri) wrote :

This bug was fixed in the package ubuntu-dev-tools - 0.191

---------------
ubuntu-dev-tools (0.191) unstable; urgency=medium

  [ Dan Streetman ]
  * lpapicache:
    + Make sure that login() actually logins and doesn't use cached credentials.
  * ubuntu-build:
    + Fix crash caused by a change in lpapicache that changed the default
      operation mode from authenticated to anonymous. LP: #1984113

  [ Stefano Rivera ]
  * backportpackage:
    + Add support for lsb-release-minimal, which doesn't have a Python module.
      Thanks to Gioele Barabucci for the patch. Closes: #1020901

  [ Mattia Rizzolo ]
  * ubuntutools/archive.py:
    + Fix operation of SourcePackage._source_urls() (as used, for example, in
      SourcePackage.pull() called by backportpackage) to also work when the
      class is instantiated with a URL as .dsc. Fixes regression from v0.184.
      Thanks to Unit 193 for the initial patch.

 -- Mattia Rizzolo <email address hidden> Tue, 11 Oct 2022 13:56:03 +0200

Changed in ubuntu-dev-tools (Ubuntu):
status: In Progress → Fix Released
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.