pkg_nofetch

Function pkg_nofetch
Purpose Tell the user how to deal with fetch-restricted packages
Sandbox Enabled
Privilege root
Called for ebuild

Default pkg_nofetch

pkg_nofetch() {
	[[ -z ${A} ]] && return

	elog "The following files cannot be fetched for ${PN}:"
	local x
	for x in ${A}; do
		elog "   ${x}"
	done
}

Sample pkg_nofetch

pkg_nofetch() {
	einfo "Please download"
	einfo "  - ${P}-main.tar.bz2"
	einfo "  - ${P}-extras.tar.bz2"
	einfo "from ${HOMEPAGE} and place them in your DISTDIR directory."
}

Notes on pkg_nofetch

This function is only triggered for packages which have RESTRICT="fetch" (see Restricting Automatic Mirroring) set, and only if one or more components listed in SRC_URI are not already available in the distfiles directory.