summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-06-16 17:32:12 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-06-16 17:32:12 -0400
commita7c317dd5fa995de2668f531a1cdd819542daf4c (patch)
tree39fe7ac5720c365cc77cf48e70ed08ae96e22243
parent01e12eebd8e19449e0603c6b0160da0d83ff4829 (diff)
downloadcobbler-a7c317dd5fa995de2668f531a1cdd819542daf4c.tar.gz
cobbler-a7c317dd5fa995de2668f531a1cdd819542daf4c.tar.xz
cobbler-a7c317dd5fa995de2668f531a1cdd819542daf4c.zip
Additional mkdir for rhn:// reposync
-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)