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

Attempting to replace repository-locked packages gives a vague error #525

Open
JamiKettunen opened this issue Dec 19, 2022 · 1 comment
Open

Comments

@JamiKettunen
Copy link

JamiKettunen commented Dec 19, 2022

As per https://docs.voidlinux.org/xbps/advanced-usage.html#repository-locking-packages once a package has been repolocked via xbps-pkgdb -m repolock <package> trying to replace it via xbps-install when it's from another repository results in a rather vague Package '<package>' not found in repository pool. error that's not super helpful to the user; it would be much nicer if it would be possible to instead report back Package '<package>' is repository-locked to <repo url or path> which is obvious.

Relevant code: https://github.com/void-linux/xbps/blob/51e74505/bin/xbps-install/transaction.c#L313-L314

$ xbps-install --version
XBPS: 0.59.1 API: 20200221 GIT: UNSET
@JamiKettunen
Copy link
Author

The ENOENT is returned from https://github.com/void-linux/xbps/blob/51e74505/lib/transaction_ops.c#L107, and in my case the repository (bind-mounted dir from host) actually is a temporary one during rootfs creation and won't exist when booted, hm...

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

No branches or pull requests

1 participant