Tidy can_build_disk checks to be more robust.
authorCarl Hetherington <cth@carlh.net>
Wed, 26 May 2021 10:56:54 +0000 (12:56 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 26 May 2021 18:05:49 +0000 (20:05 +0200)
cscript

diff --git a/cscript b/cscript
index 965d42180e2717e2bf0ec0c3997488bc66a91d4d..deddcb51aaa5d09f65ae84db5b819384fcf308ff 100644 (file)
--- a/cscript
+++ b/cscript
@@ -208,15 +208,15 @@ def can_build_disk(target):
     if target.platform == 'osx':
         return True
     if target.platform == 'linux':
-        if target.distro == 'ubuntu' and target.version in ['18.04', '20.04', '20.10', '21.04']:
+        if target.distro == 'ubuntu' and target.version != '16.04':
             return True
-        if target.distro == 'debian' and target.version == '10':
+        if target.distro == 'debian' and target.version != '9':
             return True
         if target.detail == 'appimage':
             return True 
         if target.distro == 'fedora' and int(target.version) >= 31:
             return True
-        if target.distro == 'centos' and target.version == '8':
+        if target.distro == 'centos' and target.version != '7':
             return True
         if target.distro == 'mageia':
             return True