From: Ulrich Mueller <ulm@gentoo.org>
To: Michael Haubenwallner <haubi@gentoo.org>
Cc: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Can pkg_nofetch determine if a file is already downloaded?
Date: Mon, 15 Oct 2018 17:57:35 +0200 [thread overview]
Message-ID: <w6gzhvfcids.fsf@kph.uni-mainz.de> (raw)
In-Reply-To: <a00296e0-fb33-98b9-ff26-59fe31d0b2b5@gentoo.org> (Michael Haubenwallner's message of "Mon, 15 Oct 2018 13:34:48 +0200")
[-- Attachment #1: Type: text/plain, Size: 1357 bytes --]
>>>>> On Mon, 15 Oct 2018, Michael Haubenwallner wrote:
> in pkg_nofetch, beyond to "direct the user to download relevant
> source files", I've found it useful to tell the user which
> filesystem directory to put the files into once downloaded.
> Beyond that, I've also found it useful to tell the user whether a
> relevant source file is 'already there' or 'still missing'.
> Since the EAPI 6 related update to pkg_* phases to not have access
> to DISTDIR (even in earlier EAPI) any more, I'm wondering if both
> informations are still available to pkg_nofetch in one or another
> way.
DISTDIR was never officially available in any of the pkg_* phases.
(This was the case both in EAPI 0, and in PMS as early as 2008.)
Then again, even in the src_* phases the variable will point to a
temporary shadow directory in recent Portage version, not to the real
directory containing the distfiles.
> Any idea?
> Or is my only option to reduce the information to "all these files
> need to be put in your DISTDIR", requiring the user to find out both
> the right DISTDIR and which of the listed files are still missing
> herself?
I think there is no good way to tell them more than that. Even if
DISTDIR was available in pkg_* scope, users may prefer to drop
manually downloaded files into PORTAGE_RO_DISTDIRS, which is a Portage
specific location.
Ulrich
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2018-10-15 15:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-15 11:34 [gentoo-dev] Can pkg_nofetch determine if a file is already downloaded? Michael Haubenwallner
2018-10-15 15:57 ` Ulrich Mueller [this message]
2018-10-15 18:05 ` Michał Górny
2018-10-17 16:03 ` [gentoo-dev] " Michael Haubenwallner
2018-10-17 16:14 ` Michał Górny
2018-10-18 13:34 ` Kent Fredric
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=w6gzhvfcids.fsf@kph.uni-mainz.de \
--to=ulm@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=haubi@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox