summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2010-02-16 09:33:28 -0500
committerChris Lumens <clumens@redhat.com>2010-02-16 09:33:28 -0500
commit79d7fc33732181bc56a453a796b9d1c9254c96f2 (patch)
tree6aef5c4ef424edb9e629aab9b4f961ea24e7207e
parent51dc8f2742a4faceacdd86e7ce308209263ec7d7 (diff)
downloadanaconda-79d7fc33732181bc56a453a796b9d1c9254c96f2.tar.gz
anaconda-79d7fc33732181bc56a453a796b9d1c9254c96f2.tar.xz
anaconda-79d7fc33732181bc56a453a796b9d1c9254c96f2.zip
Check for the updates directory before using it (#565840).
-rwxr-xr-xanaconda3
1 files changed, 3 insertions, 0 deletions
diff --git a/anaconda b/anaconda
index f4ab9e21d..45f259224 100755
--- a/anaconda
+++ b/anaconda
@@ -115,6 +115,9 @@ def doShutdownX11Actions():
def setupPythonUpdates():
from distutils.sysconfig import get_python_lib
+ if not os.path.exists("/tmp/updates"):
+ return
+
for pkg in os.listdir("/tmp/updates"):
d = "/tmp/updates/%s" % pkg