Skip to content
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

[Feature-Request] Add %pretrans %posttrans? #97

Closed
juliusl opened this issue Dec 5, 2023 · 1 comment · Fixed by #98
Closed

[Feature-Request] Add %pretrans %posttrans? #97

juliusl opened this issue Dec 5, 2023 · 1 comment · Fixed by #98

Comments

@juliusl
Copy link
Contributor

juliusl commented Dec 5, 2023

When RPM upgrades a package it will run all the post/pre install scripts before the post/pre uninstall scripts will run. This means that if you remove files in a pre uninstall but create the same files in post install, those files end up getting deleted when the old package is uninstalled.

It appears the way to handle this properly is to use pre/post trans scriptlets. Would it be possible to add options for these?

@juliusl
Copy link
Contributor Author

juliusl commented Dec 5, 2023

Would depend on rpm-rs/rpm#199

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 a pull request may close this issue.

1 participant