Michael DeHaan wrote:
> [EMAIL PROTECTED] wrote:
>   
>> Hi, 
>>
>> as posted yesterday, the kernel does not get downloaded even 
>> with the patch installed, when running cobbler reposync.
>> I am not a python programmer, but having a look at action_reposync.py
>> it seems to me, that the patch only changes the  
>> "if not is_rhn:" section.
>>
>> But as I am syncing from Redhat Network, is_rhn is TRUE, so this section 
>> does not get executed.
>>
>> So, is there more that has to be changed, maybe the else-section ??
>>
>>
>> Best regards
>> Tim 
>>
>>   
>>     
> I'll take a look.   Thanks for the explanation!
>
> --Michael
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>   

Let me know if this works for you:

diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py
index d1d5950..f6f7101 100644
--- a/cobbler/action_reposync.py
+++ b/cobbler/action_reposync.py
@@ -171,6 +171,10 @@ class RepoSync:
args = { "name" : repo.name, "rest" : rest }
raise CX(_("ERROR: repository %(name)s needs to be renamed %(re

+ if repo.arch == "i386":
+ # counter-intuitive, but we want the newish kernels too
+ repo.arch = "i686"
+
if repo.arch != "":
cmd = "%s -a %s" % (cmd, repo.arch)



_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to