Bug 1022001

Summary: package count doesn't match with actual packages in repodata
Product: [Fedora] Fedora Reporter: Daniel Mach <dmach>
Component: createrepoAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: lmacken, packaging-team-maint, zpavlas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: createrepo-0.10.1-0.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1022004 1022028 1022029 (view as bug list) Environment:
Last Closed: 2013-12-21 02:28:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 578256, 1022004, 1022028, 1022029    

Description Daniel Mach 2013-10-22 13:11:12 UTC
Package version:
createrepo-0.10-1.fc21.noarch

How to reproduce:
1) create a file list with existing packages
2) append a line with package that does not exist
3) run $ createrepo -i <package-list> .


zegrep '<package |packages=' repodata/*primary*xml*
<metadata xmlns="http://linux.duke.edu/metadata/common" xmlns:rpm="http://linux.duke.edu/metadata/rpm" packages="3">
<package type="rpm">
<package type="rpm">

Header says 3 packages while there are just 2 of them in metadata.

Comment 1 Zdeněk Pavlas 2013-10-22 15:33:08 UTC
Have a working fix, but it's ugly.. posted to rpm-metadata list.

Comment 2 Fedora Update System 2013-12-19 11:31:50 UTC
createrepo-0.10.1-0.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/createrepo-0.10.1-0.fc20

Comment 3 Fedora Update System 2013-12-20 01:53:26 UTC
Package createrepo-0.10.1-0.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing createrepo-0.10.1-0.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-23644/createrepo-0.10.1-0.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-12-21 02:28:19 UTC
createrepo-0.10.1-0.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.