commit:     a1a498f47f0568471f944df8a96732c4dd8f6287
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 16 06:26:42 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr 17 16:23:30 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1a498f4

gnuconfig.eclass: fix eend w/o ebegin

eend should be preceded by an begin call.

Closes: https://bugs.gentoo.org/838859
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/gnuconfig.eclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/eclass/gnuconfig.eclass b/eclass/gnuconfig.eclass
index 58bdcfd660a6..0791798632cd 100644
--- a/eclass/gnuconfig.eclass
+++ b/eclass/gnuconfig.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: gnuconfig.eclass
@@ -84,9 +84,9 @@ gnuconfig_do_update() {
                if [[ -n ${targetlist} ]] ; then
                        for target in ${targetlist} ; do
                                [[ -L ${target} ]] && rm -f "${target}"
-                               einfo "  Updating ${target/$startdir\//}"
+                               ebegin "  Updating ${target/$startdir\//}"
                                cp -f "${configsubs_dir}/${file}" "${target}"
-                               eend $?
+                               eend $? || die
                        done
                else
                        ewarn "  No ${file} found in ${startdir}, skipping ..."

Reply via email to