diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-07-02 10:25:02 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-07-02 10:25:02 -0400 |
commit | d23bfa3b30705f7eb8d3b6837c8c504c4bb3f13f (patch) | |
tree | a44d3ce32b93135bebb9b87f18e78210fa6beccd | |
parent | 2dc00466f16fd206869fb5aeea27e5f1c7a691b9 (diff) | |
download | third_party-cobbler-d23bfa3b30705f7eb8d3b6837c8c504c4bb3f13f.tar.gz third_party-cobbler-d23bfa3b30705f7eb8d3b6837c8c504c4bb3f13f.tar.xz third_party-cobbler-d23bfa3b30705f7eb8d3b6837c8c504c4bb3f13f.zip |
Backport reposync patch
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | cobbler/action_reposync.py | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -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) |