Bug 600201

Summary: createrepo does not pretty-print the first <file> entry correctly
Product: [Fedora] Fedora Reporter: Bruce Jerrick <bmj001>
Component: createrepoAssignee: Luke Macken <lmacken>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 13CC: james.antill, lmacken, pfrields
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: yum-3.2.28-3.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-04 14:59:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bruce Jerrick 2010-06-04 06:45:33 UTC
Description of problem:
In the *primary.xml.gz repodata, the first <file> entry of package is not
indented properly -- instead, it is on the same lines as the end-tag of
the preceding entries.

Version-Release number of selected component (if applicable):
createrepo-0.9.8-4.fc13.noarch

How reproducible:
?

Steps to Reproduce:
1. zcat *primary.xml.gz | less
2. Search for <file>
  
Actual results:
An example from the F13 Updates repodata:
    ...
    </rpm:requires>    <file>/usr/bin/plague-server</file>
    <file>/etc/sysconfig/plague-server</file>
    ...

Expected results:
    ...
    </rpm:requires>
    <file>/usr/bin/plague-server</file>
    <file>/etc/sysconfig/plague-server</file>
    ...

Additional info:
Note that <file> entries after the first are properly indented.

Comment 1 seth vidal 2010-06-04 14:59:09 UTC
1. so this is now fixed upstream and will make it into a release eventually.
2. not pretty printing doesn't really impact anything xml doesn't _care_
3. if you want to see the xml file pretty at any time you can do:
    xmllint --format filename.xml.gz

and it'll output the file pretty-formatted.

thanks for reporting this!

Comment 2 Fedora Update System 2010-08-02 14:12:31 UTC
yum-3.2.28-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/yum-3.2.28-1.fc13

Comment 3 Fedora Update System 2010-08-02 14:14:02 UTC
yum-3.2.28-1.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/yum-3.2.28-1.fc14

Comment 4 Fedora Update System 2010-08-02 14:15:34 UTC
yum-3.2.28-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/yum-3.2.28-1.fc12

Comment 5 Fedora Update System 2010-08-05 23:45:47 UTC
yum-3.2.28-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2010-08-12 20:16:37 UTC
yum-3.2.28-3.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/yum-3.2.28-3.fc12

Comment 7 Fedora Update System 2010-08-12 20:19:03 UTC
yum-3.2.28-3.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/yum-3.2.28-3.fc13

Comment 8 Fedora Update System 2010-08-12 20:21:25 UTC
yum-3.2.28-3.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/yum-3.2.28-3.fc14

Comment 9 Fedora Update System 2010-08-17 05:46:46 UTC
yum-3.2.28-3.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2010-08-20 02:20:20 UTC
yum-3.2.28-3.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2010-08-24 01:37:59 UTC
yum-3.2.28-3.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.