aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGöktürk Yüksek <gokturk@gentoo.org>2019-11-28 10:10:46 -0500
committerGöktürk Yüksek <gokturk@gentoo.org>2019-11-28 10:15:37 -0500
commit22e517a342ebf782fdb39afb4c7da23f6a9b4413 (patch)
tree1c0cce0041fd4c4602203c73dccdabe1ce04a1ab
parentgeneral-concepts/mirrors: Clarify that files must be distributable. (diff)
downloaddevmanual-22e517a342ebf782fdb39afb4c7da23f6a9b4413.tar.gz
devmanual-22e517a342ebf782fdb39afb4c7da23f6a9b4413.tar.bz2
devmanual-22e517a342ebf782fdb39afb4c7da23f6a9b4413.zip
ebuild-writing/variables: fix the trailing slash in ROOT for EAPI7
Before EAPI7, ROOT was guaranteed to end with a trailing slash. EAPI7 reversed this. Add back trailing slashes to ROOT in the example. Reported-by: Conrad Kostecki <conrad@kostecki.com> Signed-off-by: Göktürk Yüksek <gokturk@gentoo.org>
-rw-r--r--ebuild-writing/variables/text.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/ebuild-writing/variables/text.xml b/ebuild-writing/variables/text.xml
index 35dc8f2..ffd2597 100644
--- a/ebuild-writing/variables/text.xml
+++ b/ebuild-writing/variables/text.xml
@@ -534,11 +534,11 @@ old and obsolete configuration file still exists:
<codesample lang="ebuild">
pkg_postinst() {
- if [[ -e "${ROOT}etc/oldconfig" ]]; then
+ if [[ -e "${ROOT}/etc/oldconfig" ]]; then
ewarn "You still have the obsolete config file "
- ewarn " ${ROOT}etc/oldconfig."
- ewarn "Please migrate your settings to ${ROOT}etc/newconfig"
- ewarn "and remove ${ROOT}etc/oldconfig."
+ ewarn " ${ROOT}/etc/oldconfig."
+ ewarn "Please migrate your settings to ${ROOT}/etc/newconfig"
+ ewarn "and remove ${ROOT}/etc/oldconfig."
fi
}
</codesample>