public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH] Apply 'nonfatal' to helpers only
@ 2014-08-18  9:02 Michał Górny
  2014-08-18 12:00 ` Arfrever Frehtes Taifersar Arahesis
  0 siblings, 1 reply; 5+ messages in thread
From: Michał Górny @ 2014-08-18  9:02 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Michał Górny

Make 'nonfatal' modifier affect helpers only rather than disabling 'die'
completely. This improves the PMS conformance.
---
 bin/isolated-functions.sh | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index a22af57..d41f0b3 100644
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -106,7 +106,7 @@ __bashpid() {
 }
 
 __helpers_die() {
-	if ___eapi_helpers_can_die; then
+	if ___eapi_helpers_can_die && [[ ${PORTAGE_NONFATAL} != 1 ]]; then
 		die "$@"
 	else
 		echo -e "$@" >&2
@@ -116,11 +116,6 @@ __helpers_die() {
 die() {
 	local IFS=$' \t\n'
 
-	if [[ $PORTAGE_NONFATAL -eq 1 ]]; then
-		echo -e " $WARN*$NORMAL ${FUNCNAME[1]}: WARNING: $@" >&2
-		return 1
-	fi
-
 	set +e
 	if [ -n "${QA_INTERCEPTORS}" ] ; then
 		# die was called from inside inherit. We need to clean up
-- 
2.0.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [gentoo-portage-dev] [PATCH] Apply 'nonfatal' to helpers only
  2014-08-18  9:02 [gentoo-portage-dev] [PATCH] Apply 'nonfatal' to helpers only Michał Górny
@ 2014-08-18 12:00 ` Arfrever Frehtes Taifersar Arahesis
  2014-08-18 12:04   ` Michał Górny
  0 siblings, 1 reply; 5+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis @ 2014-08-18 12:00 UTC (permalink / raw
  To: Gentoo Portage Development

[-- Attachment #1: Type: Text/Plain, Size: 296 bytes --]

2014-08-18 11:02 Michał Górny napisał(a):
> Make 'nonfatal' modifier affect helpers only rather than disabling 'die'
> completely. This improves the PMS conformance.

It is better to leave current code, until there is replacement functionality.

--
Arfrever Frehtes Taifersar Arahesis

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-portage-dev] [PATCH] Apply 'nonfatal' to helpers only
  2014-08-18 12:00 ` Arfrever Frehtes Taifersar Arahesis
@ 2014-08-18 12:04   ` Michał Górny
  2014-08-18 15:07     ` Brian Dolbec
  0 siblings, 1 reply; 5+ messages in thread
From: Michał Górny @ 2014-08-18 12:04 UTC (permalink / raw
  To: Arfrever Frehtes Taifersar Arahesis; +Cc: Gentoo Portage Development

[-- Attachment #1: Type: text/plain, Size: 454 bytes --]

Dnia 2014-08-18, o godz. 14:00:08
Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com> napisał(a):

> 2014-08-18 11:02 Michał Górny napisał(a):
> > Make 'nonfatal' modifier affect helpers only rather than disabling 'die'
> > completely. This improves the PMS conformance.
> 
> It is better to leave current code, until there is replacement functionality.

The replacement functionality is in EAPI 6.

-- 
Best regards,
Michał Górny

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 949 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-portage-dev] [PATCH] Apply 'nonfatal' to helpers only
  2014-08-18 12:04   ` Michał Górny
@ 2014-08-18 15:07     ` Brian Dolbec
  2014-08-18 15:13       ` Michał Górny
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Dolbec @ 2014-08-18 15:07 UTC (permalink / raw
  To: gentoo-portage-dev

[-- Attachment #1: Type: text/plain, Size: 777 bytes --]

On Mon, 18 Aug 2014 14:04:32 +0200
Michał Górny <mgorny@gentoo.org> wrote:

> Dnia 2014-08-18, o godz. 14:00:08
> Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
> napisał(a):
> 
> > 2014-08-18 11:02 Michał Górny napisał(a):
> > > Make 'nonfatal' modifier affect helpers only rather than
> > > disabling 'die' completely. This improves the PMS conformance.
> > 
> > It is better to leave current code, until there is replacement
> > functionality.
> 
> The replacement functionality is in EAPI 6.
> 

Then perhaps your commit message should have stated this is an EAPI 6
involved change.  Also, EAPI 6 is no where near started to be supported
in portage.   So if this is an EAPI 6 change, it is the first.

-- 
Brian Dolbec <dolsen>


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 620 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-portage-dev] [PATCH] Apply 'nonfatal' to helpers only
  2014-08-18 15:07     ` Brian Dolbec
@ 2014-08-18 15:13       ` Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2014-08-18 15:13 UTC (permalink / raw
  To: Brian Dolbec; +Cc: gentoo-portage-dev

[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]

Dnia 2014-08-18, o godz. 08:07:12
Brian Dolbec <dolsen@gentoo.org> napisał(a):

> On Mon, 18 Aug 2014 14:04:32 +0200
> Michał Górny <mgorny@gentoo.org> wrote:
> 
> > Dnia 2014-08-18, o godz. 14:00:08
> > Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
> > napisał(a):
> > 
> > > 2014-08-18 11:02 Michał Górny napisał(a):
> > > > Make 'nonfatal' modifier affect helpers only rather than
> > > > disabling 'die' completely. This improves the PMS conformance.
> > > 
> > > It is better to leave current code, until there is replacement
> > > functionality.
> > 
> > The replacement functionality is in EAPI 6.
> 
> Then perhaps your commit message should have stated this is an EAPI 6
> involved change.  Also, EAPI 6 is no where near started to be supported
> in portage.   So if this is an EAPI 6 change, it is the first.

It's almost complete in my eapi6 branch -- first drafts for all
the Council-approved features except runtime USE :).

But this is more of preparation for it. Fixing a long-known bug
in Portage.

-- 
Best regards,
Michał Górny

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 949 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-18 15:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-18  9:02 [gentoo-portage-dev] [PATCH] Apply 'nonfatal' to helpers only Michał Górny
2014-08-18 12:00 ` Arfrever Frehtes Taifersar Arahesis
2014-08-18 12:04   ` Michał Górny
2014-08-18 15:07     ` Brian Dolbec
2014-08-18 15:13       ` Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox