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 <13597105+cloorc@users.noreply.github.com>
PR-URL: #55438
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Abdirahim Musse <abdirahim.musse@ibm.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
  • Loading branch information
cloorc authored and aduh95 committed Oct 23, 2024
1 parent 32f7d5a commit 8eb5359
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 8eb5359

Please sign in to comment.