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

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

 



From: David Cantrell <dcantrell@xxxxxxxxxx>

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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux