check for suspect RESTRICT="mirror" or RESTRICT="fetch"
If a distfile has only free licenses it should not be mirror/fetch restricted
I think people may be also restricting mirroring to avoid hitting mirrors with huge flles,
Such a check also wouldn't make sense in overlays where it's unlikely anything is mirrored.
I think people may be also restricting mirroring to avoid hitting mirrors with huge flles,
From https://devmanual.gentoo.org/general-concepts/mirrors/
The RESTRICT="mirror" setting should be used if we cannot legally mirror certain files; files will still be downloaded from the original locations.
There is also RESTRICT="fetch", which prevents Portage from trying to fetch anything manually. [...] This should only be used if a license requires it.
here it only list legal reason to use RESTRICT
I suspect it would be very hard and even impossible to define correct logic for this check, even if limited to gentoo repo only.