diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-04-04 12:36:59 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-04-04 12:36:59 -0400 |
commit | 201120155d0a045fe1af77725c40e8f380b6182d (patch) | |
tree | 116eb1b4c460c05b7bbe050fe4e7e56705857b93 /cobbler | |
parent | 096b34a93a6e60602b7366fd7ae418ba4e399d97 (diff) | |
download | cobbler-201120155d0a045fe1af77725c40e8f380b6182d.tar.gz cobbler-201120155d0a045fe1af77725c40e8f380b6182d.tar.xz cobbler-201120155d0a045fe1af77725c40e8f380b6182d.zip |
Correct some errors in kickstart templating for the new repo stuff ...
Diffstat (limited to 'cobbler')
-rw-r--r-- | cobbler/action_sync.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py index 1559b641..a00d82f9 100644 --- a/cobbler/action_sync.py +++ b/cobbler/action_sync.py @@ -396,7 +396,8 @@ class BootSync: # if there is only one, then there is no need to do this. if len(distro.source_repos) > 1: for r in distro.source_repos: - buf = buf + "%s\n" % r + base = r.split("/")[-1].replace(".repo","") + buf = buf + "repo --name=%s --baseurl=%s\n" % (base, r) return buf @@ -418,7 +419,7 @@ class BootSync: buf = buf + "wget %s --output-document=/etc/yum.repos.d/%s.repo\n" % (r, short) # if there were any core repos, install the voodoo to disable the OS public core - # location + # location -- FIXME: should probably run sed on the files, rather than rename them. if len(distro.source_repos) > 0: for x in ["fedora-core", "Centos-Base", "rhel-core"] : buf = buf + "mv /etc/yum.repos.d/%s.repo /etc/yum.repos.d/disabled-%s\n" % (x,x) |