[PATCH 2/2 blivet] Fix missing name and import in copy_to_system
Radek Vykydal
rvykydal at redhat.com
Tue Mar 12 15:56:33 UTC 2013
---
blivet/util.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/blivet/util.py b/blivet/util.py
index 495dba1..d77b260 100644
--- a/blivet/util.py
+++ b/blivet/util.py
@@ -2,6 +2,7 @@ import os
import selinux
import subprocess
import re
+import shutil
import logging
log = logging.getLogger("blivet")
@@ -260,12 +261,12 @@ def makedirs(path):
if not os.path.isdir(path):
os.makedirs(path, 0755)
-def copy_to_system(source):
+def copy_to_system(source, root_path=""):
if not os.access(source, os.R_OK):
log.info("copy_to_system: source '%s' does not exist." % source)
return False
- target = ROOT_PATH + source
+ target = root_path + source
target_dir = os.path.dirname(target)
log.debug("copy_to_system: '%s' -> '%s'." % (source, target))
if not os.path.isdir(target_dir):
--
1.7.11.7
More information about the anaconda-patches
mailing list