diff options
author | Ulrich Müller <ulm@kph.uni-mainz.de> | 2017-03-17 10:41:55 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2017-03-18 17:58:20 +0100 |
commit | fd5633bbea42e0a0dadd405960afc79460efbc07 (patch) | |
tree | c0cbc9b761dab48ba1ce0d782f4ded7fdfccd366 | |
parent | ebuild-writing/file-format: use the gitweb link for header.txt (diff) | |
download | devmanual-fd5633bbea42e0a0dadd405960afc79460efbc07.tar.gz devmanual-fd5633bbea42e0a0dadd405960afc79460efbc07.tar.bz2 devmanual-fd5633bbea42e0a0dadd405960afc79460efbc07.zip |
ebuild-writing/functions/pkg_nofetch: Do not reference DISTDIR.
According to PMS, the DISTDIR variable is not valid in pkg_* phases.
In addition, it is not guaranteed to be consistent across the ebuild
environment. So the package manager is allowed to (and Portage does)
redefine it to point to a temporary "shadow" instead of the global
distfiles directory.
Bug: 612882
-rw-r--r-- | ebuild-writing/functions/pkg_nofetch/text.xml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ebuild-writing/functions/pkg_nofetch/text.xml b/ebuild-writing/functions/pkg_nofetch/text.xml index f360607..a03d552 100644 --- a/ebuild-writing/functions/pkg_nofetch/text.xml +++ b/ebuild-writing/functions/pkg_nofetch/text.xml @@ -54,9 +54,13 @@ pkg_nofetch() { einfo "Please download" einfo " - ${P}-main.tar.bz2" einfo " - ${P}-extras.tar.bz2" - einfo "from ${HOMEPAGE} and place them in ${DISTDIR}" + einfo "from ${HOMEPAGE} and place them in your DISTDIR directory." } </codesample> +<note> +The <c>DISTDIR</c> variable is not valid in <c>pkg_*</c> phases, so it must not +be referenced. +</note> </body> </section> |