Hi,

thanks for the patch, but I am not able to install it...

If I run it, it complains

patching file action_reposync.py
patch: **** malformed patch at line 4: args = { "name" : repo.name, "rest" : 
rest } 

I also tried to manually add the lines, but then python complains 

IndentationError: unindent does not match any outer indentation level

Kind regards
Tim


***************************************** 
Tim Einmahl
Sachgebiet 144
Systemtechnik/Netze
Kraftfahrt-Bundesamt
Fördestraße 16
D-24944 Flensburg

Tel.: +49 (0)461 316-1156
Fax : +49 (0)461 314-1766

email: [EMAIL PROTECTED]
web  : www.kba.de

***************************************** 


 
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Michael DeHaan
Gesendet: Dienstag, 29. Juli 2008 18:22
An: cobbler mailing list
Betreff: Re: action_reposync.py / patch / cobbler reposync

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



***********************************************************************************
Hinweis: Diese E-Mail und evtl. Anhaenge wurden automatisch
auf Viren geprueft und gelten als virenfrei. Ihr IT-Referat.
***********************************************************************************


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

Reply via email to