New comment by kruceter on void-packages repository https://github.com/void-linux/void-packages/issues/42082#issuecomment-1416903038 Comment: There are only few instances of pkgname being modified. I am not sure what to do with it, but here is my ugly attempt: ```diff diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh index c5a9f745ba..f00edb50d0 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -1,7 +1,7 @@ # vim: set ts=4 sw=4 et: update_check() { - local i p url pkgurlname rx found_version consider + local i p url pkgurlname rx found_version consider pkgnameoverride local update_override=$XBPS_SRCPKGDIR/$XBPS_TARGET_PKG/update local original_pkgname=$pkgname local pkgname=$sourcepkg @@ -10,6 +10,9 @@ update_check() { if [ -r $update_override ]; then . $update_override + if [ "$pkgname" != "$original_pkgname" ]; then + pkgnameoverride=1 + fi if [ "$XBPS_UPDATE_CHECK_VERBOSE" ]; then echo "using $XBPS_TARGET_PKG/update overrides" 1>&2 fi @@ -121,10 +124,14 @@ update_check() { pkgurlname="$(printf %s "$url" | cut -d/ -f4)" url="https://launchpad.net/$pkgurlname/+download";; *cpan.*) - pkgname=${pkgname#perl-};; + if [ ! "$pkgnameoverride" ]; then + pkgname=${pkgname#perl-} + fi ;; *pythonhosted.org*) - pkgname=${pkgname#python-} - pkgname=${pkgname#python3-} + if [ ! "$pkgnameoverride" ]; then + pkgname=${pkgname#python-} + pkgname=${pkgname#python3-} + fi url="https://pypi.org/simple/$pkgname";; *github.com*) pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)" ``` And update-check outputs the following: ``` using python3-gnupg/update overrides fetching https://github.com/vsajip/python-gnupg/tags and scanning with /archive/refs/tags/(v?|\Qpython-gnupg\E-)?\K[\d.]+(?=\.tar\.gz") fetching https://pypi.org/simple/python-gnupg and scanning with (?