On 3 January 2014 02:18, Ulrich Mueller <u...@gentoo.org> wrote:

> > Maybe we could add RESTRICT=srcdist which would cause ebuilds to
> > save their distfiles in a separate directory controlled by
> > PORTDIR_NODIST or something. If the variable is unset then it's
> > business as usual.
>
> Interesting idea, but how would RESTRICT=srcdist be different from
> RESTRICT=mirror?
>

I'd suggest we don't even need multiple variables for this, RESTRICT=mirror
seems clear enough.

The only change required would be overloading the meaning of that RESTRICT
verb to mean new things with regard to disk storage.

ie:

/distfiles/  # Normal
/distfiles-nomirror/ # RESTRICT=mirror
/distfiles-nofetch/  # RESTRICT=fetch

I guess you could make it still search for distfiles in all 3 locations in
case end users want to do silly things like violate Java's mirroring
policies and replicate java things via distfiles/ shared,  or you could
make it straightfoward enough to use all 3 paths with a single distfiles
dir.

But as it stands, the tooling isn't too friendly for people who want/need
to closely adhere to upstream distribution policies.

-- 
Kent

Reply via email to