diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-08-02 18:26:10 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-08-02 18:26:10 +0000 |
commit | 6dec0b894cf6fc7fbd18b79b13731ab711153428 (patch) | |
tree | 82f7d19e1107481ed07701516252308dfeb64ccc /packages.py | |
parent | f9bd5ff9637685f9dbc735ef81d05e1a5ed19f10 (diff) | |
download | anaconda-6dec0b894cf6fc7fbd18b79b13731ab711153428.tar.gz anaconda-6dec0b894cf6fc7fbd18b79b13731ab711153428.tar.xz anaconda-6dec0b894cf6fc7fbd18b79b13731ab711153428.zip |
oops, iutil.rmrf fails if it exists, so let's make sure that we have something to remove
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages.py b/packages.py index 35c406367..b7ef270c0 100644 --- a/packages.py +++ b/packages.py @@ -543,8 +543,9 @@ def doPreInstall(method, id, intf, instPath, dir): try: - if not os.path.islink("/var/tmp"): + if os.path.exists("/var/tmp") and not os.path.islink("/var/tmp"): iutil.rmrf("/var/tmp") + if not os.path.islink("/var/tmp"): os.symlink("/mnt/sysimage/var/tmp", "/var/tmp") else: log("/var/tmp already exists as a symlink to %s" %(os.readlink("/var/tmp"),)) |