diff options
author | Chris Lumens <clumens@redhat.com> | 2010-01-11 10:24:45 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2010-01-11 10:24:45 -0500 |
commit | 087bfc596fe26ea575c48f468ef68ef3c91ffae8 (patch) | |
tree | 1160e7a0eff450b3b876abead83294d8b982eb0a | |
parent | cc7359afc9466837a884734398d437bdab401939 (diff) | |
download | anaconda-087bfc596fe26ea575c48f468ef68ef3c91ffae8.tar.gz anaconda-087bfc596fe26ea575c48f468ef68ef3c91ffae8.tar.xz anaconda-087bfc596fe26ea575c48f468ef68ef3c91ffae8.zip |
Make sure /tmp/DD exists before trying to copy it.
-rw-r--r-- | backend.py | 9 |
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) |