summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-08-28 16:50:40 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-08-28 16:50:40 -0400
commit87bd1494bd13f9ab5f0eccc7d239e452cb32bd48 (patch)
treeaef31e18b33a2b32964db91065d974a289418bbb /cobbler
parentef21e4549bf2972e71063c41efaa9fffc5268861 (diff)
downloadthird_party-cobbler-87bd1494bd13f9ab5f0eccc7d239e452cb32bd48.tar.gz
third_party-cobbler-87bd1494bd13f9ab5f0eccc7d239e452cb32bd48.tar.xz
third_party-cobbler-87bd1494bd13f9ab5f0eccc7d239e452cb32bd48.zip
Fix logic in repo name creation
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/action_sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index aa5a499..8302504 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -400,7 +400,7 @@ class BootSync:
if repo is None:
continue
repo.local_filename = repo.local_filename.replace(".repo","")
- if not (repo.local_filename is None) or (repo.local_filename == ""):
+ if not (repo.local_filename is None) and not (repo.local_filename == ""):
buf = buf + "wget http://%s/cblr/repo_mirror/%s/config.repo --output-document=/etc/yum.repos.d/%s.repo\n" % (self.settings.server, repo.name, repo.local_filename)
# now install the core repos