summaryrefslogtreecommitdiffstats
path: root/cobbler/action_reposync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-06-25 15:59:43 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-06-25 15:59:43 -0400
commit88d3a806dc30736dc6b4d755da79d658807e6c9e (patch)
tree078a7993b7d763b57394b8bfda7ed267f12dffeb /cobbler/action_reposync.py
parent1e7b1b8ba5a982ca801a4d8246934a2315dd5931 (diff)
downloadthird_party-cobbler-88d3a806dc30736dc6b4d755da79d658807e6c9e.tar.gz
third_party-cobbler-88d3a806dc30736dc6b4d755da79d658807e6c9e.tar.xz
third_party-cobbler-88d3a806dc30736dc6b4d755da79d658807e6c9e.zip
yum reposync should pull all kernels, not just i386 kernels, when doing reposync
Diffstat (limited to 'cobbler/action_reposync.py')
-rw-r--r--cobbler/action_reposync.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py
index 57c2d08..9168f12 100644
--- a/cobbler/action_reposync.py
+++ b/cobbler/action_reposync.py
@@ -128,10 +128,14 @@ class RepoSync:
if not has_rpm_list and repo.mirror_locally:
# if we have not requested only certain RPMs, use reposync
cmd = "/usr/bin/reposync --config=%s --repoid=%s --download_path=%s" % (temp_file, repo.name, store_path)
+
if repo.arch != "":
if repo.arch == "x86":
repo.arch = "i386" # FIX potential arch errors
- cmd = "%s -a %s" % (cmd, repo.arch)
+ # counter-intuitive, but we want the newish kernels too
+ cmd = "%s -a i686" % (cmd, repo.arch)
+ else:
+ cmd = "%s -a %s" % (cmd, repo.arch)
print _("- %s") % cmd
cmds.append(cmd)