Skip to content

Commit fed28bf

Browse files
authored
build: fix uninstall script for AIX 7.1
Signed-off-by: Cloorc <[email protected]> PR-URL: #55438 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Abdirahim Musse <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent e924465 commit fed28bf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎tools/install.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44
importast
55
importerrno
66
importos
7+
importplatform
78
importshutil
89
importsys
910
importre
1011

12+
current_system=platform.system()
13+
14+
SYSTEM_AIX="AIX"
15+
1116
defabspath(*args):
1217
path=os.path.join(*args)
1318
returnos.path.abspath(path)
@@ -44,6 +49,7 @@ def try_rmdir_r(options, path):
4449
exceptOSErrorase:
4550
ife.errno==errno.ENOTEMPTY: return
4651
ife.errno==errno.ENOENT: return
52+
ife.errno==errno.EEXISTandcurrent_system==SYSTEM_AIX: return
4753
raise
4854
path=abspath(path, '..')
4955

0 commit comments

Comments
(0)