Gentoo Archives: gentoo-dev

From: Sam James <sam@g.o>
To: gentoo-dev@l.g.o
Cc: Sam James <sam@g.o>
Subject: [gentoo-dev] [PATCH] gnuconfig.eclass: fix eend w/o ebegin
Date: Sat, 16 Apr 2022 06:28:27
Message-Id: 20220416062814.555567-1-sam@gentoo.org
1 eend should be preceded by an begin call.
2
3 Signed-off-by: Sam James <sam@g.o>
4 ---
5 eclass/gnuconfig.eclass | 6 +++---
6 1 file changed, 3 insertions(+), 3 deletions(-)
7
8 diff --git a/eclass/gnuconfig.eclass b/eclass/gnuconfig.eclass
9 index 58bdcfd660a6b..0791798632cdb 100644
10 --- a/eclass/gnuconfig.eclass
11 +++ b/eclass/gnuconfig.eclass
12 @@ -1,4 +1,4 @@
13 -# Copyright 1999-2021 Gentoo Authors
14 +# Copyright 1999-2022 Gentoo Authors
15 # Distributed under the terms of the GNU General Public License v2
16
17 # @ECLASS: gnuconfig.eclass
18 @@ -84,9 +84,9 @@ gnuconfig_do_update() {
19 if [[ -n ${targetlist} ]] ; then
20 for target in ${targetlist} ; do
21 [[ -L ${target} ]] && rm -f "${target}"
22 - einfo " Updating ${target/$startdir\//}"
23 + ebegin " Updating ${target/$startdir\//}"
24 cp -f "${configsubs_dir}/${file}" "${target}"
25 - eend $?
26 + eend $? || die
27 done
28 else
29 ewarn " No ${file} found in ${startdir}, skipping ..."
30 --
31 2.35.1

Replies

Subject Author
Re: [gentoo-dev] [PATCH] gnuconfig.eclass: fix eend w/o ebegin Mike Gilbert <floppym@g.o>