From 88d3a806dc30736dc6b4d755da79d658807e6c9e Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 25 Jun 2008 15:59:43 -0400 Subject: yum reposync should pull all kernels, not just i386 kernels, when doing reposync --- cobbler/action_reposync.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cobbler/action_reposync.py') 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) -- cgit