[Spacewalk-list] RHEL 4 client management

Jan Pazdziora jpazdziora at redhat.com
Thu May 10 19:38:37 UTC 2012


On Thu, May 10, 2012 at 04:41:15PM +0200, Pierre Casenove wrote:
> The problem is that even if this package is useless, it still make
> spacewalk fail and so, the list of rpm installed on a RedHat 4 client
> is incomplete!
> 
> So I need to get rid of that issue to have the complete list of rpm
> installed on redhat 4 clients.
> 
> I've tested to modify
> /usr/lib/python2.4/site-packages/spacewalk/server/rhnServer/server_packages.py,
> adding these lines
>   +  225             if package_data['a'] == '':
>    + 226                 package_data['a'] = None
> 
> But no luck.
> 
> Thanks in advance for your help

The package_data contains lists, not strings, so your

	if package_data['a'] == ''

will likely never match.

My guess is that you should look at the logic of the lambdaae and
do the same for the .a bit.

-- 
Jan Pazdziora
Principal Software Engineer, Satellite Engineering, Red Hat




More information about the Spacewalk-list mailing list