summaryrefslogtreecommitdiffstats
path: root/cobbler/action_reposync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-04-04 11:25:30 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-04-04 11:25:30 -0400
commitac1cc38402117488d30e9184e6d3f9fb91d469bb (patch)
treecf97f13188f8872105373a9ea17f6dc438d5f38c /cobbler/action_reposync.py
parent9fe68fb4b0befc4a0692ebe21a4d6492bf0d654b (diff)
downloadthird_party-cobbler-ac1cc38402117488d30e9184e6d3f9fb91d469bb.tar.gz
third_party-cobbler-ac1cc38402117488d30e9184e6d3f9fb91d469bb.tar.xz
third_party-cobbler-ac1cc38402117488d30e9184e6d3f9fb91d469bb.zip
Remove redundant cobbler.pod from repository (official copy now
docs/cobbler.pod) and continue working on import/reposync.
Diffstat (limited to 'cobbler/action_reposync.py')
-rw-r--r--cobbler/action_reposync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py
index 3c36bb2..fb6fdf6 100644
--- a/cobbler/action_reposync.py
+++ b/cobbler/action_reposync.py
@@ -105,7 +105,7 @@ class RepoSync:
return True
dest_path = os.path.join(self.settings.webdir, "repo_mirror", repo.name)
spacer = ""
- if repo.mirror.find("rsync://") != -1:
+ if not repo.mirror.startswith("rsync://") and not repo.mirror.startswith("/"):
spacer = "-e ssh"
if not repo.mirror.endswith("/"):
repo.mirror = "%s/" % repo.mirror