Fix comps issue for older repos.
This commit is contained in:
parent
4a55747832
commit
923ea6fa1a
@ -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>
|
* Mon Jan 21 2008 Jesse Keating <jkeating@redhat.com>
|
||||||
- Use createrepo api instead of execing it from the cli
|
- Use createrepo api instead of execing it from the cli
|
||||||
- Create different repodata for the unified media, as anaconda no longer
|
- Create different repodata for the unified media, as anaconda no longer
|
||||||
|
@ -391,11 +391,11 @@ class Gather(pypungi.PungiBase):
|
|||||||
else:
|
else:
|
||||||
compslines = open(groupfile, 'r').readlines()
|
compslines = open(groupfile, 'r').readlines()
|
||||||
for line in compslines:
|
for line in compslines:
|
||||||
if line.startswith('</comps>'):
|
if line.startswith('</comps'):
|
||||||
end = compslines.index(line)
|
end = compslines.index(line)
|
||||||
|
|
||||||
for line in compslines:
|
for line in compslines:
|
||||||
if line.startswith('<comps>'):
|
if line.startswith('<comps'):
|
||||||
start = compslines.index(line) + 1
|
start = compslines.index(line) + 1
|
||||||
|
|
||||||
ourcomps.writelines(compslines[start:end])
|
ourcomps.writelines(compslines[start:end])
|
||||||
|
Loading…
Reference in New Issue
Block a user