[blivet] copy_to_system exceptions when called
Mark Hamzy
hamzy at us.ibm.com
Wed Mar 6 20:31:16 UTC 2013
This fixes two excptions if copy_to_system was called.
---
blivet/util.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/blivet/util.py b/blivet/util.py
index 495dba1..c27d9f3 100644
--- a/blivet/util.py
+++ b/blivet/util.py
@@ -1,4 +1,5 @@
import os
+import shutil
import selinux
import subprocess
import re
@@ -261,6 +262,9 @@ def makedirs(path):
os.makedirs(path, 0755)
def copy_to_system(source):
+ # do the import now because enable_installer_mode() has finally been called.
+ from . import ROOT_PATH
+
if not os.access(source, os.R_OK):
log.info("copy_to_system: source '%s' does not exist." % source)
return False
--
1.8.1.2
More information about the anaconda-patches
mailing list