diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-11-09 16:15:18 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-11-09 16:15:18 -0500 |
commit | c323bb12871528049453aa7bd82f260ab4f76f13 (patch) | |
tree | b7a44e75fecd56d9657da00c5791553e46d6f438 | |
parent | f30aa5c121702d9706daf2eddac8b043dae7f827 (diff) | |
download | third_party-cobbler-c323bb12871528049453aa7bd82f260ab4f76f13.tar.gz third_party-cobbler-c323bb12871528049453aa7bd82f260ab4f76f13.tar.xz third_party-cobbler-c323bb12871528049453aa7bd82f260ab4f76f13.zip |
Fix the part that configures yum on the installed machines/etc for when there is only one yum repo as part of the distro.
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | cobbler/action_sync.py | 11 |
2 files changed, 7 insertions, 5 deletions
@@ -4,6 +4,7 @@ Cobbler CHANGELOG * Thu Nov 07 2007 - 0.6.4 - Changed permissions of auth.conf - Fixes for working with rhn_yum_plugin +- still allow repo configuration for distro repos that have just 1 repo (like C5.1) * Wed Nov 07 2007 - 0.6.3 - Be able to define and use Multiple NICs per system diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py index 47586d1..fb70911 100644 --- a/cobbler/action_sync.py +++ b/cobbler/action_sync.py @@ -678,11 +678,12 @@ class BootSync: # tack on all the install source repos IF there is more than one. # this is basically to support things like RHEL5 split trees # if there is only one, then there is no need to do this. - if len(blended["source_repos"]) > 1: - for r in blended["source_repos"]: - # convert webdir to path - filename = self.settings.webdir + "/" + "/".join(r[0].split("/")[4:]) - input_files.append(filename) + + #if len(blended["source_repos"]) > 1: + for r in blended["source_repos"]: + # convert webdir to path + filename = self.settings.webdir + "/" + "/".join(r[0].split("/")[4:]) + input_files.append(filename) for repo in blended["repos"]: input_files.append(os.path.join(self.settings.webdir, "repo_mirror", repo, "config.repo")) |