diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-04-04 11:25:30 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-04-04 11:25:30 -0400 |
commit | ac1cc38402117488d30e9184e6d3f9fb91d469bb (patch) | |
tree | cf97f13188f8872105373a9ea17f6dc438d5f38c /cobbler/action_reposync.py | |
parent | 9fe68fb4b0befc4a0692ebe21a4d6492bf0d654b (diff) | |
download | third_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.py | 2 |
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 |