Project

Profile

Help

Issue #8176

Updated by pulpbot about 1 year ago

 

 **Ticket moved to GitHub**: "pulp/pulp_rpm/2264":https://github.com/pulp/pulp_rpm/issues/2264 




 ---- 


 This is from a discussion on the Foreman forums (https://community.theforeman.org/t/bug-smart-proxies-do-not-sync-katello-3-15-through-3-18-rc2/21654/5).  

 A user provided a possible workaround: 
 ~~~ 
 I may have found a workaround (WARNING: possible dirty hack detected). The problem seems to be with the Yum groups defined in comps.xml (I wasn’t able to find the file itself, but as most repos seem to have this problem, I decided ‘just’ to check Yum docs what it’s supposed to do) 

 And I edited the Python file (/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/repomd/group.py) throwing the errors. 

 Replace 

     packagelist = element.find('packagelist') 
     conditional, default, mandatory, optional = _parse_packagelist( 
         packagelist.findall('packagereq')) 
 with 

     packagelist = element.find('packagelist') 
     try: 
         conditional, default, mandatory, optional = _parse_packagelist( 
             packagelist.findall('packagereq')) 
     except: 
         conditional, default, mandatory, optional = [], [], [], [] 
 This bypasses any faulty comps.xml files, but I DO NOT KNOW if and what this might break in the long term. I am still currently testing it. 
 ~~~ 

Back