Fix comps issue for older repos.

This commit is contained in:
Jesse Keating 2008-02-08 15:04:56 -05:00 committed by Jesse Keating
parent 4a55747832
commit 923ea6fa1a
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
* Fri Feb 08 2008 Jesse Keating <jkeating@redhat.com>
- Fix comps mashup to be more lenient with the open/close of <comps
* Mon Jan 21 2008 Jesse Keating <jkeating@redhat.com>
- Use createrepo api instead of execing it from the cli
- Create different repodata for the unified media, as anaconda no longer

View File

@ -391,11 +391,11 @@ class Gather(pypungi.PungiBase):
else:
compslines = open(groupfile, 'r').readlines()
for line in compslines:
if line.startswith('</comps>'):
if line.startswith('</comps'):
end = compslines.index(line)
for line in compslines:
if line.startswith('<comps>'):
if line.startswith('<comps'):
start = compslines.index(line) + 1
ourcomps.writelines(compslines[start:end])