-
Notifications
You must be signed in to change notification settings - Fork 39
Add support for %config(missingok) and %config(noreplace) #113
Comments
Looking at https://github.com/rpm-software-management/rpm/blob/79ca74e15e15c1d91a9a31a9ee90abc91736f390/lib/rpmfiles.h#L50 - adding support for all the file attributes might be useful. |
I completely agree. Could you make a PR for that? |
I can look at that - will need to setup an account and sign the CLA first. The changes would also be updating more than just the flags tho ( since access to FileFlags is encapsulated ). Currently however - how does one simply build the project? Running
|
That would be awesome! I will amend the |
Ok, I did add a bit of information. Let me know if I can help you. |
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
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>
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>
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>
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 #113 Signed-off-by: Mark Derricutt <mark.derricutt@smxemail.com>
Currently
org.eclipse.packagedrone.utils.rpm.FileFlags
only includes a setting forCONFIGURATION
.It would good to include
CONFIGURATION_MISSING_OK
andCONFIGURATION_NO_REPLACE
support as well.I believe I can get around this currently by calling
addFile(String targetName, Path sourcePath, int mode, Instant mtime, Consumer<RpmBuilder.FileEntry> customizer)
via reflection, since the customizer can callsetFlags
directly on theFileEntry
( using 0.14.1 ).The text was updated successfully, but these errors were encountered: