Skip to content

Commit fed28bf

Browse files
authored
build: fix uninstall script for AIX 7.1
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>
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
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy