Bug 1703410 - RFE: rpm2swidtag --repo should not overwrite the existing repomd.xml in-place
Summary: RFE: rpm2swidtag --repo should not overwrite the existing repomd.xml in-place
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: swid-tools
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Pazdziora
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-26 11:02 UTC by Stephen Tweedie
Modified: 2019-05-15 01:35 UTC (History)
2 users (show)

Fixed In Version: swid-tools-0.8.2-1.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-15 01:35:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Stephen Tweedie 2019-04-26 11:02:51 UTC
Description of problem:
When I run "rpm2swidtag --repo", the newly-created repodata/*-swidtags.xml.gz file is added to the list of artifacts in the existing repodata/repomd.xml file.

Unfortunately, if the repo has been hard-linked to another location, this update-in-place behaviour results in the repomd.xml for both locations of the repomd.xml being updated.

It is natural practice to manage multiple versions of a repo via hardlink farms.  It would be more convenient to be able to add SWID tags to one copy of a hardlinked repo tree without disturbing the other, by having rpm2swidtag --repo write the new repomd.xml to a new inode instead of updating the existing one in-place.

Version-Release number of selected component (if applicable):
swid-tools-0.8.1-1

How reproducible:
100%

Comment 1 Jan Pazdziora 2019-05-06 11:59:58 UTC
Temporary repomd.xml + rename was implemented upstream:
https://github.com/swidtags/rpm2swidtag/commit/403eef94efbbc2ca785f33adeb2f224ac850e919

Comment 2 Fedora Update System 2019-05-06 14:51:00 UTC
swid-tools-0.8.2-1.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-2c96e4701e

Comment 3 Fedora Update System 2019-05-06 21:04:05 UTC
swid-tools-0.8.2-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-2c96e4701e

Comment 4 Fedora Update System 2019-05-15 01:35:13 UTC
swid-tools-0.8.2-1.fc30 has been pushed to the Fedora 30 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.