mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
build: fix uninstall script for AIX 7.1
Signed-off-by: Cloorc <13597105+cloorc@users.noreply.github.com> PR-URL: https://github.com/nodejs/node/pull/55438 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Abdirahim Musse <abdirahim.musse@ibm.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
This commit is contained in:
parent
e92446536e
commit
fed28bf813
@ -4,10 +4,15 @@ import argparse
|
|||||||
import ast
|
import ast
|
||||||
import errno
|
import errno
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
current_system = platform.system()
|
||||||
|
|
||||||
|
SYSTEM_AIX = "AIX"
|
||||||
|
|
||||||
def abspath(*args):
|
def abspath(*args):
|
||||||
path = os.path.join(*args)
|
path = os.path.join(*args)
|
||||||
return os.path.abspath(path)
|
return os.path.abspath(path)
|
||||||
@ -44,6 +49,7 @@ def try_rmdir_r(options, path):
|
|||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno == errno.ENOTEMPTY: return
|
if e.errno == errno.ENOTEMPTY: return
|
||||||
if e.errno == errno.ENOENT: return
|
if e.errno == errno.ENOENT: return
|
||||||
|
if e.errno == errno.EEXIST and current_system == SYSTEM_AIX: return
|
||||||
raise
|
raise
|
||||||
path = abspath(path, '..')
|
path = abspath(path, '..')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user