Applied. Will push soon. Thanks.
On Wed, 2013-03-06 at 14:31 -0600, Mark Hamzy wrote:
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