-
Notifications
You must be signed in to change notification settings - Fork 443
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
RPM scriptles from file produce duplicate entries. #812
Comments
Thanks for the sample project reproducing the error. Would you like to make a pull request with a failing test for this: https://github.com/sbt/sbt-native-packager/tree/master/src/sbt-test/rpm/scriptlets-override-rpm The test only checks for existence, but not for uniqueness. |
I'd like to. Have to find a time slot.. |
@muuki88 Unfortunately this fix not only removes the duplicates but adds also mor standard scripts into the spec file linke
This is not expected since we want to remove the standard stuff alltogether. Could you please reopen the isse? |
This is actually expected behaviour. I know this is not really intuitive and we plan to change this with maybe the next minor version, but we kept it for backwards compatibility. To give a bit more context for my statement above. At first the were settings for each rpm scriplet, like
Furthermore the Back to the original question, why the
Where the JavaServerArchetype actually provides the function to map scripts from a folder. As for standalone cli applications you would have to insert the ConclusionIMHO the best option would be to extract the "loading scripts from a predefined directory" either
|
Unfortunately this seems to be a moving target.. I've back ported the fix based on v.1.1.1 tag. This is the PR for an v.1.1.2 release: #827 |
@muuki88 thx for explaining the design rationale. It would be nice if we could have feature stability on 1.1.x, 1.2.x releases. |
Here is a test project https://github.com/zoosky/scriptlets-override-rpm which produces the error:
https://github.com/zoosky/scriptlets-override-rpm
This is the SPEC file with duplicates, see %post and %postun
https://github.com/zoosky/scriptlets-override-rpm/blob/master/rpm-test.spec#L157
Testet with
The text was updated successfully, but these errors were encountered: