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

portacle-update: don't try to delete used packages #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

metayan
Copy link
Contributor

@metayan metayan commented Aug 1, 2018

portacle-update was triggering errors like

package-delete:
Package ‘async-20180527.1030’ is used by ‘with-editor’ as dependency, not deleting

causing the update to be interrupted.
Fixed by checking if the package is used elsewhere before trying to delete it.

Fixes the
"package-delete: Package ‘async-20180527.1030’ is used by ‘with-editor’ as dependency, not deleting"
error, which caused the update to not end cleanly.
@Shinmera
Copy link
Member

Shinmera commented Aug 1, 2018

I'm not sure if this is correct. It seems to me that we might not be deleting everything we can if we simply forfeit used packages, as they might be used by a pending deletion. Perhaps packages need to be deleted in dependency order to avoid triggering the error.

@metayan
Copy link
Contributor Author

metayan commented Aug 7, 2018

Alright, getting it to work by ignoring any errors in package-delete
#14

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