summaryrefslogtreecommitdiffstats
path: root/cobbler/action_sync.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/action_sync.py')
-rw-r--r--cobbler/action_sync.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index 1559b64..a00d82f 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)