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 5714d687..ec988bb8 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -10,6 +10,7 @@ Cobbler CHANGELOG
- further templatize ISC dhcp config file (pay attention to /etc/cobbler/dhcp.template.rpmnew !)
- fix for NFS imported URLs during kickstart generation
- added yumreposync_flags to settings, default "-l" for use plugins
+- added an extra mkdir for rhn's reposync, though I believe the -l cures it already
- Wed Jun 03 2008 - 1.0.3
- Fix error message output from failed kickstart rendering
diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py
index 6ce6ebea..cc80a521 100644
--- a/cobbler/action_reposync.py
+++ b/cobbler/action_reposync.py
@@ -245,6 +245,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)