summaryrefslogtreecommitdiffstats
path: root/cobbler/action_reposync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-06-08 12:27:25 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-06-08 12:27:25 -0400
commit874512b0792ad4d33020642e710e9f9df1c446ca (patch)
treeb51defcc8658e6af5a3287e3f79b740c365dbd63 /cobbler/action_reposync.py
parent07fa65d0b6eb887f2d5570aaa9ee97c51cc960a6 (diff)
downloadthird_party-cobbler-874512b0792ad4d33020642e710e9f9df1c446ca.tar.gz
third_party-cobbler-874512b0792ad4d33020642e710e9f9df1c446ca.tar.xz
third_party-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/action_reposync.py')
-rw-r--r--cobbler/action_reposync.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py
index 76e673f..9ed8f47 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.