Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: bin/
Date: Thu, 17 Jan 2019 18:30:35
Message-Id: 1547749794.0180b4e4a4499878a01005b317c8cea431bbb5fa.zmedico@gentoo
1 commit: 0180b4e4a4499878a01005b317c8cea431bbb5fa
2 Author: junwei <337560754 <AT> qq <DOT> com>
3 AuthorDate: Thu Jan 17 16:06:12 2019 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 17 18:29:54 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=0180b4e4
7
8 ebuild.sh: fix try_source qa condition test
9
10 Fixes: 60ee4deefb70 ("Refactor bashrc scripts sourcing")
11 Closes: https://github.com/gentoo/portage/pull/400
12 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
13
14 bin/ebuild.sh | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/bin/ebuild.sh b/bin/ebuild.sh
18 index 978643af7..820db50ca 100755
19 --- a/bin/ebuild.sh
20 +++ b/bin/ebuild.sh
21 @@ -476,7 +476,7 @@ __try_source() {
22 # If $- contains x, then tracing has already been enabled
23 # elsewhere for some reason. We preserve it's state so as
24 # not to interfere.
25 - if [[ ${qa} ]]; then
26 + if ! ${qa} ; then
27 source "${1}"
28 else
29 __qa_source "${1}"