summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG1
-rw-r--r--cobbler/action_reposync.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index d594dd7..f1f768f 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -9,6 +9,7 @@ Cobbler CHANGELOG
- yum reposync should also pull i686 kernels, not just i386
- make cobblerd close file handles
- fix kickstart serving when the tree is on NFS
+- fix missing reposync createdir (also now in stable branch)
- Mon Jun 09 2008 - 1.0.2
- Fix mkdir invocation
diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py
index 9168f12..758ebf8 100644
--- a/cobbler/action_reposync.py
+++ b/cobbler/action_reposync.py
@@ -249,6 +249,8 @@ class RepoSync:
else:
fname = os.path.join(dest_path, "%s.repo" % repo.name)
print _("- creating: %s") % fname
+ if not os.path.exists(dest_path):
+ utils.mkdir(dest_path)
config_file = open(fname, "w+")
config_file.write("[%s]\n" % repo.name)
config_file.write("name=%s\n" % repo.name)