Skip to content

Configuration file flag not added to RPM #445

@milgner

Description

@milgner

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:

    from("src/main/resources") {
        fileType = Directive(RPMFILE_CONFIG or RPMFILE_NOREPLACE)
        into("/etc/rebased/conf")
        eachFile {
            configurationFiles.push("/$path")
        }
    }

I have also tried just setting one configurationFile and leaving out the RPMFILE_NOREPLACE flag or the fileType altogether.

But the resulting .rpm file doesn't have any information - about neither the config flag nor the noreplace. 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 the rpm packaging plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions