Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 573056 - nonfatal die -n does not output the error message (EAPI 6)
Summary: nonfatal die -n does not output the error message (EAPI 6)
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: portage-2.3.0
  Show dependency tree
 
Reported: 2016-01-26 21:41 UTC by Ulrich Müller
Modified: 2016-03-14 03:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2016-01-26 21:41:33 UTC
nonfatal die -n "foo" simply returns with status 1, without any output.

PMS is quite explicit that it should display the error message even in this case:
"If called under the nonfatal command (as per section 11.3.3.1) and with -n as its first parameter, displays a failure message provided in its following argument and then returns a non-zero exit status."
https://projects.gentoo.org/pms/6/pms.html#x1-13500011.3.3.6
Comment 1 Alexander Berntsen (RETIRED) gentoo-dev 2016-01-28 12:12:42 UTC
This is now in git, courtesy of Ulrich: https://gitweb.gentoo.org/proj/portage.git/commit/?id=f0ce7366b137119f087974d52ae807940e74ed56
Comment 2 Zac Medico gentoo-dev 2016-03-14 03:46:35 UTC
Fixed in 2.2.28.

New commit hash:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=34dd17d154a4769c30a278f6bc407e8cb27706e9