summaryrefslogtreecommitdiffstats
path: root/backend.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2010-01-11 10:24:45 -0500
committerChris Lumens <clumens@redhat.com>2010-01-11 10:24:45 -0500
commit087bfc596fe26ea575c48f468ef68ef3c91ffae8 (patch)
tree1160e7a0eff450b3b876abead83294d8b982eb0a /backend.py
parentcc7359afc9466837a884734398d437bdab401939 (diff)
downloadanaconda-087bfc596fe26ea575c48f468ef68ef3c91ffae8.tar.gz
anaconda-087bfc596fe26ea575c48f468ef68ef3c91ffae8.tar.xz
anaconda-087bfc596fe26ea575c48f468ef68ef3c91ffae8.zip
Make sure /tmp/DD exists before trying to copy it.
Diffstat (limited to 'backend.py')
-rw-r--r--backend.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/backend.py b/backend.py
index 8dd17a5ec..e8e1c841d 100644
--- a/backend.py
+++ b/backend.py
@@ -106,10 +106,11 @@ class AnacondaBackend:
shutil.copytree(d, anaconda.rootPath + "/root/" + os.path.basename(d))
#copy modules and firmware
- try:
- shutil.copytree(DD_EXTRACTED, anaconda.rootPath + "/root/DD")
- except IOError, e:
- pass
+ if os.path.exists(DD_EXTRACTED):
+ try:
+ shutil.copytree(DD_EXTRACTED, anaconda.rootPath + "/root/DD")
+ except IOError, e:
+ pass
storage.writeEscrowPackets(anaconda)