Your message dated Tue, 11 Oct 2022 12:23:52 +0000
with message-id <e1oieia-00g3ri...@fasolo.debian.org>
and subject line Bug#1020901: fixed in ubuntu-dev-tools 0.191
has caused the Debian Bug report #1020901,
regarding backportpackage fails when the lsb_release Python module is not
available
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1020901: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1020901
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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.
Regards,
--
Gioele Barabucci
From b5fa8d8aa0d117d90b58483dc97a14fda3003db1 Mon Sep 17 00:00:00 2001
From: Gioele Barabucci <gio...@svario.it>
Date: Wed, 28 Sep 2022 08:18:52 +0200
Subject: [PATCH] backportpackage: Run lsb_release as command if the Python
module is not available
---
backportpackage | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
diff --git a/backportpackage b/backportpackage
index 320486b..13a7a5e 100755
--- a/backportpackage
+++ b/backportpackage
@@ -27,7 +27,10 @@ import sys
import tempfile
from urllib.parse import quote
-import lsb_release
+try:
+ import lsb_release
+except ImportError:
+ lsb_release = None
from httplib2 import Http, HttpLib2Error
from distro_info import DebianDistroInfo, UbuntuDistroInfo
@@ -396,11 +399,17 @@ def main(args):
Launchpad.login_anonymously(service=opts.lpinstance)
if not opts.dest_releases:
- distinfo = lsb_release.get_distro_information()
- try:
- current_distro = distinfo['ID']
- except KeyError:
- error('No destination release specified and unable to guess yours.')
+ if lsb_release:
+ distinfo = lsb_release.get_distro_information()
+ try:
+ current_distro = distinfo['ID']
+ except KeyError:
+ error('No destination release specified and unable to guess yours.')
+ else:
+ err, current_distro = subprocess.getstatusoutput('lsb_release --id --short')
+ if err:
+ error('Could not run lsb_release to retrieve distribution')
+
if current_distro == "Ubuntu":
opts.dest_releases = [UbuntuDistroInfo().lts()]
if current_distro == "Debian":
--
2.35.1
--- End Message ---
--- Begin Message ---
Source: ubuntu-dev-tools
Source-Version: 0.191
Done: Mattia Rizzolo <mat...@debian.org>
We believe that the bug you reported is fixed in the latest version of
ubuntu-dev-tools, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1020...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Mattia Rizzolo <mat...@debian.org> (supplier of updated ubuntu-dev-tools
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 11 Oct 2022 13:56:03 +0200
Source: ubuntu-dev-tools
Architecture: source
Version: 0.191
Distribution: unstable
Urgency: medium
Maintainer: Ubuntu Developers <ubuntu-dev-to...@packages.debian.org>
Changed-By: Mattia Rizzolo <mat...@debian.org>
Closes: 1020901
Changes:
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.
Checksums-Sha1:
18c5883065bcbfa893169776807381e85feddd19 2233 ubuntu-dev-tools_0.191.dsc
5226d4791f0dae6e326c3e55e5dd5d815151fcd9 165496 ubuntu-dev-tools_0.191.tar.xz
353d9f26b70899bf95113fd215e72fd09a8f7109 13964
ubuntu-dev-tools_0.191_source.buildinfo
Checksums-Sha256:
e7da85feae7c73ae0c3a75bfff4760ab9d01bd257b99f5ccb8e906a7289976e2 2233
ubuntu-dev-tools_0.191.dsc
1ce413cdd26d0ce25b23e44ee1dcdc24982c1b65cb242c99c0954dabcc03fad3 165496
ubuntu-dev-tools_0.191.tar.xz
430bf64f84bb2045d156f5e02a3c2cac26f28ab5bdfcd044c1b018bc9c96b55d 13964
ubuntu-dev-tools_0.191_source.buildinfo
Files:
78bef177faf80498a7d8afac150adaf5 2233 devel optional ubuntu-dev-tools_0.191.dsc
5370a2a1731bc156faa1015924978f7f 165496 devel optional
ubuntu-dev-tools_0.191.tar.xz
e2464328108e9d5808b8b54f2e2bbc8a 13964 devel optional
ubuntu-dev-tools_0.191_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJGBAEBCgAwFiEEi3hoeGwz5cZMTQpICBa54Yx2K60FAmNFWfoSHG1hdHRpYUBk
ZWJpYW4ub3JnAAoJEAgWueGMdiutJOsP/3RkJEFnMlLw9cPM/zItI60SCee9w4fI
Qlmdg92+QhwtbRWvAyFRJFdxUanejDa6d9bFcffbipmp6hY/bBLeHIhsMkQ++S68
AerS72/TKsmfhPUdJKXlN4XdtEHhLzDQNbrfIIbyP6jHRUAwSTD78/OJ83cqOC+2
vdrGfP1nBbPBPHbsvVSpkCGui7hON0YzVL8Vlk5mb9FDP+YPc0vpU5+aCOA10grx
JfpBOmKqF5W4tfGxz7ZU4dzoMF0COtv8SlhmZhqIWgECFs095boaIldq8q6ZpW4B
GGsvw1L2MG6MUIs8l77/dL6gXPNxEYKzg/RbFRISs8DlkID/GXZXC6fYJj/WrfzG
vhHOFa9d1hKwfXajjf09wE9COLsevBq/Icb8PUkkxIKUzhHkhCNoelZ/WaxPXRaS
WxAVl7qbBYifl1Ok/7jmbHRH9kkiS2Oji0h8ihZN48Pkl9Zu3limLeQEebmjjWJW
HlFndwfEXnFcmJprHhp6ohVFUi7Q6YflTbsRWsuzoRjIrLt9ZNAOcTHjK/3wJGkM
C6diI2aYpWd7V1KEnEhBa0J85H/4lLrCzBrJJLWBKDfPFEGkO87sFjolMXqfECRt
XVAGXvbQ74ar2RO7CfKUi9QVbWg38eFnmPKMNDSN4zAu4h9lYh+ArxePDOthCBfq
v6jSXzZCxudx
=meRZ
-----END PGP SIGNATURE-----
--- End Message ---