Skip to content

Commit 7f6837a

Browse files
Adjusted scripts/platform-is-supported to not fail on Debian Testing and Unstable.
The Testing Debian distribution only get its version number returned from lsb_release very shortly before the release, so for most of its life it will be set to n/a like it is for Unstable.
1 parent 11e849e commit 7f6837a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

scripts/platform-is-supported

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,13 @@ if os == 'linux':
7272
except ValueError as e:
7373
major = release
7474
minor = "0"
75-
release_major = int(major)
76-
release_minor = int(minor)
75+
try:
76+
release_major = int(major)
77+
release_minor = int(minor)
78+
except ValueError as e:
79+
# Debian Unstable and Testing do not have a release number, the value is 'n/a'
80+
release_major = 666
81+
release_minor = 0
7782

7883
uname = subprocess.check_output(['uname', '-r']).strip()
7984
kernel_flavor = detect_kernel_flavor(uname)

0 commit comments

Comments
 (0)