* [gentoo-portage-dev] [PATCH] isolated-functions.sh: Output error message for nofatal die.
@ 2016-01-27 21:05 Ulrich Müller
2016-01-27 22:19 ` Brian Dolbec
0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Müller @ 2016-01-27 21:05 UTC (permalink / raw
To: gentoo-portage-dev
X-Gentoo-Bug: 573056
---
bin/isolated-functions.sh | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 5766921..e320f71 100644
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
source "${PORTAGE_BIN_PATH}/eapi.sh" || exit 1
@@ -124,10 +124,11 @@ die() {
set +x # tracing only produces useless noise here
local IFS=$' \t\n'
- if ___eapi_die_can_respect_nonfatal; then
- if [[ ${1} == -n ]]; then
- [[ ${PORTAGE_NONFATAL} == 1 ]] && return 1
- shift
+ if ___eapi_die_can_respect_nonfatal && [[ $1 == -n ]]; then
+ shift
+ if [[ ${PORTAGE_NONFATAL} == 1 ]]; then
+ [[ $# -gt 0 ]] && eerror "$*"
+ return 1
fi
fi
--
2.7.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [gentoo-portage-dev] [PATCH] isolated-functions.sh: Output error message for nofatal die.
2016-01-27 21:05 [gentoo-portage-dev] [PATCH] isolated-functions.sh: Output error message for nofatal die Ulrich Müller
@ 2016-01-27 22:19 ` Brian Dolbec
2016-01-28 12:11 ` Alexander Berntsen
0 siblings, 1 reply; 3+ messages in thread
From: Brian Dolbec @ 2016-01-27 22:19 UTC (permalink / raw
To: gentoo-portage-dev
On Wed, 27 Jan 2016 22:05:51 +0100
Ulrich Müller <ulm@gentoo.org> wrote:
> X-Gentoo-Bug: 573056
> ---
> bin/isolated-functions.sh | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
> index 5766921..e320f71 100644
> --- a/bin/isolated-functions.sh
> +++ b/bin/isolated-functions.sh
> @@ -1,5 +1,5 @@
> #!/bin/bash
> -# Copyright 1999-2014 Gentoo Foundation
> +# Copyright 1999-2016 Gentoo Foundation
> # Distributed under the terms of the GNU General Public License v2
>
> source "${PORTAGE_BIN_PATH}/eapi.sh" || exit 1
> @@ -124,10 +124,11 @@ die() {
> set +x # tracing only produces useless noise here
> local IFS=$' \t\n'
>
> - if ___eapi_die_can_respect_nonfatal; then
> - if [[ ${1} == -n ]]; then
> - [[ ${PORTAGE_NONFATAL} == 1 ]] && return 1
> - shift
> + if ___eapi_die_can_respect_nonfatal && [[ $1 == -n ]]; then
> + shift
> + if [[ ${PORTAGE_NONFATAL} == 1 ]]; then
> + [[ $# -gt 0 ]] && eerror "$*"
> + return 1
> fi
> fi
>
looks good, you can push it I think can't you?
--
Brian Dolbec <dolsen>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-portage-dev] [PATCH] isolated-functions.sh: Output error message for nofatal die.
2016-01-27 22:19 ` Brian Dolbec
@ 2016-01-28 12:11 ` Alexander Berntsen
0 siblings, 0 replies; 3+ messages in thread
From: Alexander Berntsen @ 2016-01-28 12:11 UTC (permalink / raw
To: gentoo-portage-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On 27/01/16 23:19, Brian Dolbec wrote:
> looks good, you can push it I think can't you?
I added acked-by and the bug URL to the commit message and pushed it
as f0ce7366b137119f087974d52ae807940e74ed56.
Thanks for the patch, Ulrich!
- --
Alexander
bernalex@gentoo.org
https://secure.plaimi.net/~alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCgAGBQJWqgViAAoJENQqWdRUGk8BWDIP/RIEYeNDOSR7dJithc6s3N6K
EVDdspg73adFbqxRnTg1l6eqGkcLGLVdNQSkxVMTkEenaA4nmj/FKW/1A8/pMx48
YC9aGQ6plPRFl3//mlq7pRwlea7tP0t/kCWJ6lWTJPLnXRX1qsxSK/IVUGdF3GLv
djmhxcBQ9zttXLWoeAS91yZN6dHnMtwoigrNWMTSKPvVY3YSlCcbqCQDiWN99kC0
p1zapyzmETHW52qEuV9Twg1iuNAgHKhQi3TioKs4AP9+eAJ8U0eiS5+3c+u4FeWl
alMxJX624u9TGVpPdC2tN/5CdKC2f3Eh69kKCcBe5KvSqkOElLIVqtUZjJxMVpqQ
sRB9VcEw4hEI7a9fQ4qaKnt3k1VuoaX+4UgyAPqhB7JRH9Chf+RJkLhBNGtVuzoA
kCVK4/XwJUXtc0TjwITVzhJk1vzKSb9BrKhtVeuCp6DxpJymVsbBb68Y3s8qw2MP
VY/PXxpZWNHPH7FE2+sGp13cBOc3kEjexsizkk+QvX0+DWQldZuzyBykmgGcJ0dy
VrckAhqii4BNcRlzzxDUj/UVsC2uj8utKSB2w64y1RpbZt6M1g7EbrDxxtW5VfGe
XUl6VpENKNN1GdsMUFEks3hIwP096ICKkkHrPj41DJwdGeI0lzHIHZMBOz8WQiMI
QQom1wzHOVCaeG0URSEl
=Ypco
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-01-28 12:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-27 21:05 [gentoo-portage-dev] [PATCH] isolated-functions.sh: Output error message for nofatal die Ulrich Müller
2016-01-27 22:19 ` Brian Dolbec
2016-01-28 12:11 ` Alexander Berntsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox