pkgcheck icon indicating copy to clipboard operation
pkgcheck copied to clipboard

check for suspect RESTRICT="mirror" or RESTRICT="fetch"

Open Alessandro-Barbieri opened this issue 3 years ago • 3 comments

If a distfile has only free licenses it should not be mirror/fetch restricted

Alessandro-Barbieri avatar Jun 15 '22 23:06 Alessandro-Barbieri

I think people may be also restricting mirroring to avoid hitting mirrors with huge flles,

mgorny avatar Jun 16 '22 04:06 mgorny

Such a check also wouldn't make sense in overlays where it's unlikely anything is mirrored.

ajakk avatar Jun 16 '22 12:06 ajakk

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

Alessandro-Barbieri avatar Jul 06 '22 00:07 Alessandro-Barbieri

I suspect it would be very hard and even impossible to define correct logic for this check, even if limited to gentoo repo only.

arthurzam avatar Jan 24 '23 19:01 arthurzam