Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 492392

Summary: warn if SRC_URI points to a file, but RESTRICT="fetch" is not set
Product: Gentoo Hosted Projects Reporter: Julian Ospald <hasufell>
Component: PkgCoreAssignee: PkgCore project <pkgcore>
Status: RESOLVED OBSOLETE    
Severity: enhancement CC: zerochaos
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Julian Ospald 2013-11-23 21:44:53 UTC
I really cannot think of a usecase where someone would do:

SRC_URI="foo-bar-gaybar-baz.tar.gz"

but not set RESTRICT="fetch"

if there is none... we should emit a warning
Comment 1 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2022-10-22 17:20:44 UTC
pkgcheck already reports it (missing uri + missing restrict fetch) using
https://pkgcore.github.io/pkgcheck/man/pkgcheck.html#missinguri