diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-06-16 17:32:12 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-06-16 17:32:12 -0400 |
commit | a7c317dd5fa995de2668f531a1cdd819542daf4c (patch) | |
tree | 39fe7ac5720c365cc77cf48e70ed08ae96e22243 | |
parent | 01e12eebd8e19449e0603c6b0160da0d83ff4829 (diff) | |
download | cobbler-a7c317dd5fa995de2668f531a1cdd819542daf4c.tar.gz cobbler-a7c317dd5fa995de2668f531a1cdd819542daf4c.tar.xz cobbler-a7c317dd5fa995de2668f531a1cdd819542daf4c.zip |
Additional mkdir for rhn:// reposync
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | cobbler/action_reposync.py | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -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) |