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 /cobbler/action_reposync.py | |
parent | 2dc00466f16fd206869fb5aeea27e5f1c7a691b9 (diff) | |
download | third_party-cobbler-d23bfa3b30705f7eb8d3b6837c8c504c4bb3f13f.tar.gz third_party-cobbler-d23bfa3b30705f7eb8d3b6837c8c504c4bb3f13f.tar.xz third_party-cobbler-d23bfa3b30705f7eb8d3b6837c8c504c4bb3f13f.zip |
Backport reposync patch
Diffstat (limited to 'cobbler/action_reposync.py')
-rw-r--r-- | cobbler/action_reposync.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |