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

fix [close #194]: makes Remove and Add functions behave the same way #196

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

taukakao
Copy link
Member

@taukakao taukakao commented Jan 9, 2024

This PR makes the ABRoot behavior when adding and removing packages more consistent

Scenario:

pkg remove sudo - add to packages.remove
pkg remove sudo - do nothing
pkg add sudo - remove from packages.remove
pkg add sudo - add to packages.add

Works the same way the other way around.

Also prevents abroot from writing unnecessary entries to packages.unstaged. (duplicates and complements)
This is needed to prevent abroot from trying to install nonexistent packages.

Tested in a VM.

@taukakao
Copy link
Member Author

taukakao commented Jan 9, 2024

Closes #194

Copy link
Member

@matbme matbme left a comment

Choose a reason for hiding this comment

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

LGTM. Nice job!

@matbme matbme merged commit 172686b into Vanilla-OS:main Jan 9, 2024
2 checks passed
@kbdharun kbdharun removed the request for review from mirkobrombin January 9, 2024 11:44
@taukakao taukakao deleted the fix-remove-from-remove-file branch April 13, 2024 02:43
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