Gentoo Archives: gentoo-pms

From: "Michał Górny" <mgorny@g.o>
To: gentoo-pms@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-pms] [PATCH 1/6] nonfatal: Reword argument handling to be cleaner
Date: Tue, 01 May 2018 11:24:09
Message-Id: 20180501112401.7606-2-mgorny@gentoo.org
In Reply to: [gentoo-pms] [PATCH 0/6] Ebuild-specific commands clarification & cleanup by "Michał Górny"
1 Reword the description of 'nonfatal' to explicitly indicate that it
2 takes 1+ args and executes them as a command. The original 'remainder
3 of its argument' wording sounds weird, given that there is no earlier
4 mention of argument processing (-> remainder from what?). This also
5 clarifies that calling nonfatal with no argument is not valid.
6 ---
7 pkg-mgr-commands.tex | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
11 index 506673b..cb704f0 100644
12 --- a/pkg-mgr-commands.tex
13 +++ b/pkg-mgr-commands.tex
14 @@ -17,7 +17,7 @@ table~\ref{tab:commands-die-table}.
15
16 The following commands affect this behaviour:
17 \begin{description}
18 -\item[nonfatal] \featurelabel{nonfatal} Executes the remainder of its arguments as a command,
19 +\item[nonfatal] \featurelabel{nonfatal} Takes one or more arguments and executes them as a command,
20 preserving the exit status. If this results in a command being called that would normally abort
21 the build process due to a failure, instead a non-zero exit status shall be returned. Only in
22 EAPIs listed in table~\ref{tab:commands-die-table} as supporting \t{nonfatal}.
23 --
24 2.17.0