File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,14 @@ PY_PAT = sys.version_info[2]
40
40
# to the newer version "omd" command which made the newer OMD load the old
41
41
# python libraries. Newer versions unset these variables before, so this
42
42
# additional execv() is only needed when updating from older versions.
43
- if len (sys .argv ) > 1 and sys .argv [1 ] == "update" and (PY_MAJ == 2 and PY_MIN == 7 and PY_PAT < 14 ):
43
+ if (
44
+ len (sys .argv ) > 1
45
+ and "update" in sys .argv
46
+ and (
47
+ (PY_MAJ == 2 and PY_MIN == 7 and PY_PAT < 14 )
48
+ or (PY_MAJ == 3 and PY_MIN in (10 , 11 ) and PY_PAT < 5 )
49
+ )
50
+ ):
44
51
# Prevent inheriting environment variables from this versions/site environment
45
52
# into the execed omd call. The OMD call must import the python version related
46
53
# modules and libaries. This only works when PYTHONPATH and LD_LIBRARY_PATH are
You can’t perform that action at this time.
0 commit comments