Skip to content

Commit 8eb5359

Browse files
cloorcaduh95
authored andcommittedOct 23, 2024
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 32f7d5a commit 8eb5359

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎tools/install.py

+6
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44
import ast
55
import errno
66
import os
7+
import platform
78
import shutil
89
import sys
910
import re
1011

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

0 commit comments

Comments
 (0)
Please sign in to comment.