From 0ede9dccbebd6a95b18cb747d73c1dcefd859373 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 26 May 2021 12:56:54 +0200 Subject: [PATCH] Tidy can_build_disk checks to be more robust. --- cscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cscript b/cscript index 965d42180..deddcb51a 100644 --- 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 -- 2.30.2