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

ROCmCreatePackage: Update to prerm/postun scriptlets #112

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

solaiys
Copy link
Contributor

@solaiys solaiys commented Sep 19, 2022

During upgrade, the .pth files are getting removed after installing the new pkg( rpm/deb). This is because the postun/prerm scriplets has no condition check for remove/uninstall Vs upgrade.

THose .pth files should be removed only during the remove/uninstall operation.

Since the same set of scriptlets are used for both RPM and DEB, two conditions are checked for remove/uninstall and files will be removed on any one condition is satisfied ( either for RPM or DEB uninstall).

Signed-off-by: Saravanan Solaiyappan [email protected]

During upgrade, the .pth files are getting removed after installing
the new pkg( rpm/deb). This is because the postun/prerm scriplets
has no condition check for remove/uninstall Vs upgrade.

THose .pth files should be removed only during the remove/uninstall
operation.

Since the same set of scriptlets are used for both RPM and DEB, two
conditions are checked for remove/uninstall and files will be removed
on any one condition is satisfied ( either for RPM or DEB uninstall).

Signed-off-by: Saravanan Solaiyappan <[email protected]>
@solaiys
Copy link
Contributor Author

solaiys commented Sep 19, 2022

@raramakr, Please review

@solaiys
Copy link
Contributor Author

solaiys commented Sep 23, 2022

Hi Reviewers & Code Owners, ( @pfultz2 , @lawruble13 , @cgmb )
Anything pending from my side to push this change for merging?
Please review and vote.

Copy link
Collaborator

@lawruble13 lawruble13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this has been validated on all OSes, it seems fine to me.

@lawruble13 lawruble13 merged commit b7e2bc1 into ROCm:develop Oct 12, 2022
@solaiys solaiys mentioned this pull request Nov 3, 2022
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.

2 participants