From: Didier Raboud Date: Wed, 12 Aug 2015 12:17:16 +0000 (+0200) Subject: Actuall ignore suites when guessing the release from apt X-Git-Tag: archive/raspbian/10.2018112800+rpi1^2~47 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=15246e2254f52e9991579c0b046a2b6aa0c24224;p=lsb.git Actuall ignore suites when guessing the release from apt --- diff --git a/lsb_release.py b/lsb_release.py index e11aead..7b768ea 100644 --- a/lsb_release.py +++ b/lsb_release.py @@ -278,8 +278,7 @@ def guess_debian_release(): print('Unable to open ' + etc_dpkg_origins_default + ':', str(msg), file=sys.stderr) # Populate RELEASES_ORDER for the correct distro - if distinfo['ID'].lower() != 'Debian': - get_distro_info(distinfo['ID']) + get_distro_info(distinfo['ID']) kern = os.uname()[0] if kern in ('Linux', 'Hurd', 'NetBSD'): @@ -307,7 +306,7 @@ def guess_debian_release(): codename = lookup_codename(release, 'n/a') distinfo.update({ 'RELEASE' : release, 'CODENAME' : codename }) elif release.endswith('/sid'): - if release.rstrip('/sid').lower() != 'testing': + if release.rstrip('/sid').lower().isalpha() != 'testing': global TESTING_CODENAME TESTING_CODENAME = release.rstrip('/sid') distinfo['RELEASE'] = 'testing/unstable'