diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-06-08 12:27:25 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-06-08 12:27:25 -0400 |
commit | 874512b0792ad4d33020642e710e9f9df1c446ca (patch) | |
tree | b51defcc8658e6af5a3287e3f79b740c365dbd63 /cobbler | |
parent | 07fa65d0b6eb887f2d5570aaa9ee97c51cc960a6 (diff) | |
download | cobbler-874512b0792ad4d33020642e710e9f9df1c446ca.tar.gz cobbler-874512b0792ad4d33020642e710e9f9df1c446ca.tar.xz cobbler-874512b0792ad4d33020642e710e9f9df1c446ca.zip |
Always create the .origin and directory, even if doing the reposync from
yum_rhn_plugin. Needs further testing.
Diffstat (limited to 'cobbler')
-rw-r--r-- | cobbler/action_reposync.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py index 76e673f6..9ed8f47a 100644 --- a/cobbler/action_reposync.py +++ b/cobbler/action_reposync.py @@ -104,9 +104,8 @@ class RepoSync: store_path = os.path.join(self.settings.webdir, "repo_mirror") dest_path = os.path.join(store_path, repo.name) temp_path = os.path.join(store_path, ".origin") - if not os.path.isdir(temp_path) and not is_rhn: - # if doing the rhn sync, reposync will make the directory - # otherwise, we need to do it explicitly + if not os.path.isdir(temp_path): + # FIXME: there's a chance this might break the RHN D/L case os.makedirs(temp_path) # how we invoke yum-utils depends on whether this is RHN content or not. |