From 156fcd3a6880a49e03e6f92969bd2827b149f19e Mon Sep 17 00:00:00 2001 From: Mark Hamzy Date: Wed, 6 Mar 2013 14:31:16 -0600 Subject: [PATCH 2/5] Fix two excptions triggered by calls to copy_to_system. --- 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.4