$GENTOO_MIRRORS in /etc/make.conf is allowed to contain local filesystem paths. Unfortunately, mirrorselect removes such paths, requiring the admin to manually re-insert those paths into GENTOO_MIRRORS after mirrorselect has been run. Reproducible: Always Steps to Reproduce: 1. Prefix GENTOO_MIRRORS with something like "/usr/local/portage/distfiles " 2. Run "mirrorselect". Actual Results: The prefix is lost. Expected Results: All leading GENTOO_MIRRORS entries which do not look like some URI syntax should be retained. When writing private ebuilds in an overlay for the local host only, it is common to add a directory like /usr/local/portage/distfiles before the first mirror listed in $GENTOO_MIRRORS. Unfortunately, mirrorselect removes such entries, and so the admin has to manually re-insert them. I would suggest parsing the old $GENTOO_MIRRORS value, split it into words and remember all such leading words which start with a slash (and are therefore local paths). Then mirrorselect should do what it does now. But before writing back the newly detected GENTOO_MIRRORS, the saved paths should be inserted before the first actual mirror.
Created attachment 139002 [details, diff] mirrorselect patch to retain mounted filesystems Here's a patch providing a potential fix. Comments and testing are welcome. You can apply the patch via: patch -p0 < /path/to/retain_mounted_filesystems.patch in a directory where mirrorselect is. Please back up /etc/make.conf first!
(In reply to comment #1) > Here's a patch providing a potential fix. Comments and testing are welcome. Well done - works like a charm! :-)
fixed in mirrorselect 1.3
closing