From c323bb12871528049453aa7bd82f260ab4f76f13 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 9 Nov 2007 16:15:18 -0500 Subject: Fix the part that configures yum on the installed machines/etc for when there is only one yum repo as part of the distro. --- cobbler/action_sync.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'cobbler') 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")) -- cgit