Actuall ignore suites when guessing the release from apt
authorDidier Raboud <odyx@debian.org>
Wed, 12 Aug 2015 12:17:16 +0000 (14:17 +0200)
committerDidier Raboud <odyx@debian.org>
Wed, 12 Aug 2015 12:18:25 +0000 (14:18 +0200)
lsb_release.py

index e11aead4f6c35b2d0e134d3dff73140e94b5bc6d..7b768ea528b3d276a50ce890bce55eeab0abb504 100644 (file)
@@ -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'