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 /cobbler | |
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.
Diffstat (limited to 'cobbler')
-rw-r--r-- | cobbler/action_sync.py | 11 |
1 files changed, 6 insertions, 5 deletions
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")) |