Bug 713747 - RFE: support removing metadata from repodata
Summary: RFE: support removing metadata from repodata
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: createrepo
Version: 15
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: Luke Macken
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 563609 714094 714095
TreeView+ depends on / blocked
 
Reported: 2011-06-16 13:12 UTC by Daniel Mach
Modified: 2016-09-20 02:42 UTC (History)
5 users (show)

Fixed In Version: createrepo-0.9.9-4.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 714094 714095 (view as bug list)
Environment:
Last Closed: 2011-07-29 18:06:23 UTC
Type: ---


Attachments (Terms of Use)
remove metadata patch (6.15 KB, patch)
2011-06-16 13:15 UTC, Daniel Mach
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.