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

Bug 15144

Summary: RESTRICT="nomirror" doesn't work
Product: Portage Development Reporter: Jonathan Nall <nall>
Component: UnclassifiedAssignee: Nicholas Jones (RETIRED) <carpaski>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jonathan Nall 2003-02-04 20:40:05 UTC
i'm trying to use RESTRICT="nomirror" in an ebuild to avoid trying to download
from mirrors and instead download straight from the SRC_URI. this doesn't work
and emerge still tries to d/l from the mirrors first.

(i also tried RESTRICT="mirror", as this was suggested by seemant. it didn't
work either)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
emerge tries to d/l package from locations in GENTOO_MIRRORS

Expected Results:  
emerge immediately downloads from SRC_URI
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-02-04 22:18:36 UTC
Ummmm...
nomirror disables fetching completely IF you're mirroring...

FEATURES=mirror emerge blah <---- Is mirroring.

RESTRICT=fetch
means don't ever download it.

It will always try the mirror first. But should always fail as it
wouldn't be mirrored due to restrict=nomirror
Comment 2 Jonathan Nall 2003-02-04 23:11:55 UTC
ah, sorry about that. seemant told me that if i had an ebuild whose tarball can only be downloaded from the author (license disallows redistribution) i should put RESTRICT="nomirror" in the ebuild. i assumed this meant it would always pull from SRC_URI and ignore GENTOO_MIRRORS. man, that whole assuming thing, eh?

i'm closing this. sorry for the noise.