-
Notifications
You must be signed in to change notification settings - Fork 39
Replace configuration with RPM FileFlags. #115
Replace configuration with RPM FileFlags. #115
Conversation
6fad633
to
22110bb
Compare
Thank you for this PR. This really is awesome. I would like to amend a few things in the same PR, if that is fine with you. I would like to understand if there is any particular reason why you deprecated the "CONFIGURATION" literal? As the enum is already named "FileFlags" it seems a bit redundant to me to prefix them with "RPMFILE_". Also is the "NONE" literal not really needed as the same can be achieved with an empty I any case, thank you very much. I definitely want to get this merged soon. |
@ctron Cheers - took awhile to get some time away from normal work to look at this again. A quick reply as I'm just heading to bed shortly. The only reason I used the Dropping I'll update the PR in the morning with those changes if they sound good to you. Ideally I'd love to rename |
Cool. Thank you that you will take care of that. I do appreciate it. I agree with the FileFlag(s) ... But that would break the current API and I don't think this is worth it. Some things are just a bit odd 😉 |
This change replaces the existing means of setting a file as being a configuration file, by exposing FileFlags modification to SimpleFileInformationCustomizer. As part of this we also define the full set of RPM file flags, using the naming from the upstream RPM sources at https://github.com/rpm-software-management/rpm/blob/master/lib/rpmfiles.h Existing behaviour is (currently) deprecated and adapted to use the newer code. Fixes eclipse-archived#113 Signed-off-by: Mark Derricutt <mark.derricutt@smxemail.com>
22110bb
to
4bd1929
Compare
Updated the PR with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Thank you very much for the PR. I will try to get out a release as soon as possible. |
The release is done. As this only affects the RPM library, I only did a release on Maven Central. |
A while ago we had a need/desire to configure our config files with %noreplace, but this wasn't supported or easily exposed via the current PackageDrone library.
This patch adds the full set of RPMFILE_* file flags defined by the current RPM project, and exposes setting those FileFlags via the
FileInformation
class. The existingCONFIGURATION
andsetConfiguration
/isConfiguration
code has been left in, but deprecated for now.Initially I was going to base this PR on the
master
branch, but it seems that doesn't match the 0.14.1 release that's available in Maven Central, so this PR is based off the0.14.x-release
branch.CLA has been signed.