Closed talios closed 7 years ago
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 mvn clean install
using the pom.xml
in the repository fails to build with missing P2 repositories:
org.eclipse.equinox.p2.core.ProvisionException: No repository found at file:////Users/amrk/temp/packagedrone/bundles
``
Is there a way of bootstrapping P2 repositories/build? I see it's declared in the pom as `file:///${basedir}/../../runtime/target/repository`...
That would be awesome! I will amend the README.md
file providing a bit more information how to build this from the command line.
Ok, I did add a bit of information. Let me know if I can help you.
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 ).