From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C1554138334 for ; Thu, 28 Nov 2019 18:32:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EEABDE09CF; Thu, 28 Nov 2019 18:32:54 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D3B18E09CF for ; Thu, 28 Nov 2019 18:32:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B5CA134D53B for ; Thu, 28 Nov 2019 18:32:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B20778A6 for ; Thu, 28 Nov 2019 18:32:51 +0000 (UTC) From: "Göktürk Yüksek" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Göktürk Yüksek" Message-ID: <1574954137.22e517a342ebf782fdb39afb4c7da23f6a9b4413.gokturk@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/variables/ X-VCS-Repository: proj/devmanual X-VCS-Files: ebuild-writing/variables/text.xml X-VCS-Directories: ebuild-writing/variables/ X-VCS-Committer: gokturk X-VCS-Committer-Name: Göktürk Yüksek X-VCS-Revision: 22e517a342ebf782fdb39afb4c7da23f6a9b4413 X-VCS-Branch: master Date: Thu, 28 Nov 2019 18:32:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 621dee39-6048-4b10-ad7a-eaacf9a9f386 X-Archives-Hash: 1b7fb23eb28ef6d18c666c6530d5bb37 commit: 22e517a342ebf782fdb39afb4c7da23f6a9b4413 Author: Göktürk Yüksek gentoo org> AuthorDate: Thu Nov 28 15:10:46 2019 +0000 Commit: Göktürk Yüksek gentoo org> CommitDate: Thu Nov 28 15:15:37 2019 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=22e517a3 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 kostecki.com> Signed-off-by: Göktürk Yüksek gentoo.org> ebuild-writing/variables/text.xml | 8 ++++---- 1 file 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: 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 }