Bug 713747

Summary: RFE: support removing metadata from repodata
Product: [Fedora] Fedora Reporter: Daniel Mach <dmach>
Component: createrepoAssignee: Luke Macken <lmacken>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: high    
Version: 15CC: ebenes, james.antill, lmacken, pfrields, pkilambi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: createrepo-0.9.9-4.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 714094 714095 (view as bug list) Environment:
Last Closed: 2011-07-29 18:06:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 563609, 714094, 714095    
Attachments:
Description Flags
remove metadata patch none

Description Daniel Mach 2011-06-16 13:12:38 UTC
We need to be able to remove metadata from repodata using modifyrepo.
I wrote a patch that does it (user has to provide --remove option).

It also fixes updating existing metadata; original behaviour:
- file already exists in repodata
- a file with different checksum is added there (has the same mdtype)
- the original file is *not* removed, new file is added; repodata points to the new file

Now the old file is correctly removed from repodata dir.


Could you also backport this to el6 and el5?
(not sure if it is possible, but can't modifyrepo be used as is in el5?)

Comment 1 Daniel Mach 2011-06-16 13:15:04 UTC
Created attachment 505037 [details]
remove metadata patch

Comment 2 James Antill 2011-06-17 14:05:44 UTC
patch looks ok to me (not tested it yet, or anything though :).

Comment 5 seth vidal 2011-07-29 18:06:23 UTC
I applied your patch and pushed it upstream.
Thank you.

Rolling a pkg today for rawhide.

Comment 6 Fedora Update System 2011-07-29 20:07:02 UTC
createrepo-0.9.9-4.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/createrepo-0.9.9-4.fc15

Comment 7 Fedora Update System 2011-08-02 02:06:25 UTC
createrepo-0.9.9-4.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.