xbps
xbps copied to clipboard
Attempting to replace repository-locked packages gives a vague error
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
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...