Included java 20 in check too

This commit is contained in:
Nikhil Badyal
2023-08-05 11:55:13 +05:30
parent ce5387a4b7
commit f8528772fb
+2 -2
View File
@@ -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