[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 1/2] Make parent directories for ks scriptlet log files (#568861)



From: David Cantrell <dcantrell redhat com>

Create parent directories for logfiles if they do not exist.
(cherry picked from commit abe159b350549c804e9e6cecf869a5e6cfa3340e)
---
 kickstart.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kickstart.py b/kickstart.py
index 506e061..1f414c5 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -62,7 +62,7 @@ class AnacondaKSScript(Script):
             else:
                 messages = self.logfile
 
-            d = os.path.basename(messages)
+            d = os.path.dirname(messages)
             if not os.path.exists(d):
                 os.makedirs(d)
         else:
-- 
1.7.2.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]