Skip to content

Fix configuration file marking in deb#464

Open
valepakh wants to merge 4 commits into
nebula-plugins:mainfrom
valepakh:debFileType
Open

Fix configuration file marking in deb#464
valepakh wants to merge 4 commits into
nebula-plugins:mainfrom
valepakh:debFileType

Conversation

@valepakh

@valepakh valepakh commented May 21, 2025

Copy link
Copy Markdown

Fix for the #463
The Directive is not an enum, but a class so string coercion doesn't work here

Also the test with eachLine was not properly testing it.
First, the fileType was not of a proper type, second, eachLine on a string with 1 line was not testing the second term.

Proper test for the CONFIG flag was added to the DebCopyAction so now it recognizes it even when it's combined with other flags.
Combining flags is moved to the common code so it's possible to write fileType CONFIG | NOREPLACE in the common configuration section and it will be picked by both rpm and deb.
The test for the rpm is added but it's disabled for some reason so I left it as is, although I checked it locally.

@valepakh

valepakh commented Sep 8, 2025

Copy link
Copy Markdown
Author

@rpalcolea could you please take a look at this?

# Conflicts:
#	src/main/groovy/com/netflix/gradle/plugins/rpm/RpmPlugin.groovy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant