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

api: cleanup dnf.Base.package_remove and make it public api #1872

Closed

Conversation

timlau
Copy link
Contributor

@timlau timlau commented Dec 22, 2022

  • Added check for if the package is installed
  • raise dnf.exceptions.MarkingError is not installed.
  • added clean_deps flag to goal.erase to handle removal of deps (same as in dnf.Base.remove)

dnfdaemon and yumex-ng uses the dnf.Base.package_remove to mark a installed package for installation, but need workarounds because it don't handle deps in the current state.
And using non public API is not a good thing.

Tim Lauridsen added 2 commits December 22, 2022 15:44
- Added check for if the package is installed
- raise dnf.exceptions.MarkingError is not installed.
- added clean_deps flag to goal.erase to handle removal of deps (same as in dnf.Base.remove)
@jan-kolarik jan-kolarik self-assigned this Jan 2, 2023
@jan-kolarik
Copy link
Member

Hello Tim and thanks for the contribution! First of all, please drop the formatting changes from the commit as it is very difficult to find the actual mentioned logic changes there. If it is not necessary, please do not include it in the PR or at least put it in the separate commit. We want to have the code formatting consistent across the project codebase.

@timlau
Copy link
Contributor Author

timlau commented Jan 3, 2023

Looks like vscode, reformatted the code, this was not the plan, I will make a new PR without the code formating

@timlau timlau closed this Jan 3, 2023
@timlau timlau deleted the feature_pkg_inst_api branch January 3, 2023 06:28
@timlau
Copy link
Contributor Author

timlau commented Jan 3, 2023

replaced by new PR
#1874

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.

None yet

2 participants