diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-06-25 15:59:43 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-06-25 15:59:43 -0400 |
commit | 88d3a806dc30736dc6b4d755da79d658807e6c9e (patch) | |
tree | 078a7993b7d763b57394b8bfda7ed267f12dffeb /cobbler/action_reposync.py | |
parent | 1e7b1b8ba5a982ca801a4d8246934a2315dd5931 (diff) | |
download | third_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.py | 6 |
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) |