From f8528772fb6916028e63ea7247b8a49a5c51c537 Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Sat, 5 Aug 2023 11:55:13 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Included=20java=2020=20in=20check?= =?UTF-8?q?=20too?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/patches.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/patches.py b/src/patches.py index c4fc733..073996e 100644 --- a/src/patches.py +++ b/src/patches.py @@ -76,11 +76,11 @@ class Patches(object): jd = jd[1:-1] if "Runtime Environment" not in jd: raise subprocess.CalledProcessError(-1, "java -version") - if "17" not in jd: + if "17" not in jd and "20" not in jd: raise subprocess.CalledProcessError(-1, "java -version") logger.debug("Cool!! Java is available") except subprocess.CalledProcessError: - logger.debug("Java 17 Must be installed") + logger.debug("Java>= 17 Must be installed") exit(-1) # noinspection DuplicatedCode