8000 Add functions for adding/removing packages by Kurstch · Pull Request #65 · Jguer/go-alpm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add functions for adding/removing packages #65

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

Merged
merged 1 commit into from
May 1, 2025
Merged

Conversation

Kurstch
Copy link
@Kurstch Kurstch commented Apr 21, 2025

Hello, I want to use go-alpm for a hobby project, but I see that there's no support for package adding/removing.

This PR adds support for the following functions:

  • alpm_trans_prepare
  • alpm_trans_interrupt
  • alpm_trans_commit
  • alpm_add_pkg
  • alpm_remove_pkg

I also added minimal example in testdata/examples/sync/sync.go (not sure if the name is appropriate).
I did not include alpm_trans_interrupt call in the example, because I do not fully understand how it works internally, and when it can be called.

@Jguer
Copy link
Owner
Jguer commented Apr 30, 2025

that's looking good @Kurstch , I've added some extra tests and fixed some issues with the linter in my last PR, if you can rebase, the CI should pass after

@Kurstch
Copy link
Author
Kurstch commented May 1, 2025

I rebased, but there were some conflicts, so I ended up force pushing. Hope that is ok

@Jguer
Copy link
Owner
Jguer commented May 1, 2025

All good, there's a minor linting problem but that's related to an update in golangci from yay-builder.

Thanks for your contribution

@Jguer Jguer merged commit 3cc37a6 into Jguer:main May 1, 2025
1 of 2 checks passed
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
0