Skip to content

Commit

Permalink
build: fix uninstall script for AIX 7.1
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
cloorc authored and ruyadorno committed Nov 27, 2024
1 parent edbbd4a commit 6ee94a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@
import ast
import errno
import os
import platform
import shutil
import sys
import re

current_system = platform.system()

SYSTEM_AIX = "AIX"

def abspath(*args):
path = os.path.join(*args)
return os.path.abspath(path)
Expand Down Expand Up @@ -44,6 +49,7 @@ def try_rmdir_r(options, path):
except OSError as e:
if e.errno == errno.ENOTEMPTY: return
if e.errno == errno.ENOENT: return
if e.errno == errno.EEXIST and current_system == SYSTEM_AIX: return
raise
path = abspath(path, '..')

Expand Down

0 comments on commit 6ee94a3

Please sign in to comment.