Skip to content

pacman-helper: fix quick-remove with GPG-signing - #772

Merged
dscho merged 1 commit into
mainfrom
fix-pacman-quick-remove
Nov 12, 2026
Merged

dscho merged 1 commit into
mainfrom
fix-pacman-quick-remove

Conversation

@dscho

@dscho dscho commented Nov 12, 2026

Copy link
Copy Markdown
Member

When GPG-signing is enabled, a --sign option is passed to quick_remove. But d9bcad7 (pacman-helper: tolerate removing a package absent from a database, 2026-06-20) introduced logic that misinterprets that option as referring to the database file.

This prevented the removal of the OpenSSL packages that I started in git-for-windows/git#6452 (comment) from working: While the package files were deleted successfully, their corresponding items in the database survived.

When GPG-signing is enabled, a `--sign` option is passed to
`quick_remove`. But d9bcad7 (pacman-helper: tolerate removing a
package absent from a database, 2026-06-20) introduced logic that
misinterprets that option as referring to the database file.

This prevented the removal of the OpenSSL packages that I started in
git-for-windows/git#6452 (comment)
from working: While the package _files_ were deleted successfully, their
corresponding items in the database survived.

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho

dscho commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

I had forgotten to open this, and when I unshadowed OpenSSH and friends, the exact same thing happened again. And just like the OpenSSL mishap required a manual git-for-windows/pacman-repo@76a48f2, this OpenSSH & friends mishap required git-for-windows/pacman-repo@bfe30e9.

@dscho
dscho merged commit a033661 into main Nov 12, 2026
6 checks passed
@dscho
dscho deleted the fix-pacman-quick-remove branch November 12, 2026 14:06
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.

1 participant