-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration file flag not added to RPM #445
Comments
gradle-ospackage-plugin/src/main/groovy/com/netflix/gradle/plugins/rpm/RpmCopyAction.groovy Line 159 in 7f0a8aa
The comment on https://github.com/nebula-plugins/gradle-ospackage-plugin/blob/main/src/main/groovy/com/netflix/gradle/plugins/packaging/CopySpecEnhancement.groovy#L16-L28 seems to indicate that either syntax should work fine. |
That is very strange. I have tried a few more approaches, but the RPM file never lists the file(s) as config files. from("src/main/resources") {
into("/etc/rebased/conf")
eachFile {
fileType = Directive(RPMFILE_CONFIG or RPMFILE_NOREPLACE)
}
} I'm checking with |
At a glance, you'll want to drop the |
That was my very first approach. When that didn't work, I tried all kinds of variations, without success. |
After reading #56 and #118, it seems like the issue was fixed for DEB packages but is still not working for RPMs.
After some experimentation, my Gradle build script now contains:
I have also tried just setting one
configurationFile
and leaving out theRPMFILE_NOREPLACE
flag or thefileType
altogether.But the resulting
.rpm
file doesn't have any information - about neither the config flag nor thenoreplace
. The file itself is included as expected, though.Furthermore, a code search on Github did not turn up any reference to the
configurationFiles
attribute as part of therpm
packaging plugin.The text was updated successfully, but these errors were encountered: