1 |
commit: 08a0e2b36761cf63e4a5a77f27c026b4dab9789b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 28 14:05:38 2017 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 24 12:55:24 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=08a0e2b3 |
7 |
|
8 |
EAPI 7 has eqawarn |
9 |
|
10 |
Bug: https://bugs.gentoo.org/482884 |
11 |
|
12 |
eapi-differences.tex | 4 ++++ |
13 |
pkg-mgr-commands.tex | 13 +++++++++---- |
14 |
2 files changed, 13 insertions(+), 4 deletions(-) |
15 |
|
16 |
diff --git a/eapi-differences.tex b/eapi-differences.tex |
17 |
index d7153a8..97ca9ad 100644 |
18 |
--- a/eapi-differences.tex |
19 |
+++ b/eapi-differences.tex |
20 |
@@ -239,6 +239,9 @@ Query command options & \compactfeatureref{pm-query-options} & |
21 |
Output commands use stdout & \compactfeatureref{output-no-stdout} & |
22 |
Yes & Yes & Yes & Yes & No \\ |
23 |
|
24 |
+\t{eqawarn} & \compactfeatureref{eqawarn} & |
25 |
+ No & No & No & No & Yes \\ |
26 |
+ |
27 |
\t{die -n} & \compactfeatureref{nonfatal-die} & |
28 |
No & No & No & Yes & Yes \\ |
29 |
|
30 |
@@ -465,6 +468,7 @@ EAPI 7 is EAPI 6 with the following changes: |
31 |
\item \t{dolib} and \t{libopts} banned, \featureref{banned-commands}. |
32 |
\item Sandbox path removal commands, \featureref{sandbox-rm}. |
33 |
\item Output commands no longer use stdout, \featureref{output-no-stdout}. |
34 |
+\item \t{eqawarn}, \featureref{eqawarn}. |
35 |
\end{compactitem} |
36 |
|
37 |
\ChangeWhenAddingAnEAPI{7} |
38 |
|
39 |
diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex |
40 |
index d3b904c..64d1bd1 100644 |
41 |
--- a/pkg-mgr-commands.tex |
42 |
+++ b/pkg-mgr-commands.tex |
43 |
@@ -174,6 +174,10 @@ output, using stdout as an output facility is forbidden. |
44 |
manager may choose to log \t{elog} messages by default where \t{einfo} messages are not, for |
45 |
example. |
46 |
\item[ewarn] Displays a warning message. Must not go to stdout. |
47 |
+\item[eqawarn] \featurelabel{eqawarn} Display a QA warning message intended for ebuild developers. |
48 |
+ The package manager may provide appropriate mechanisms to skip those messages for normal users. |
49 |
+ Must not go to stdout. Only available in EAPIs listed in table~\ref{tab:output-commands} as |
50 |
+ supporting \t{eqawarn}. |
51 |
\item[eerror] Displays an error message. Must not go to stdout. |
52 |
\item[ebegin] Displays an informational message. Should be used when beginning a possibly |
53 |
lengthy process, and followed by a call to \t{eend}. |
54 |
@@ -186,13 +190,14 @@ output, using stdout as an output facility is forbidden. |
55 |
\ChangeWhenAddingAnEAPI{7} |
56 |
\begin{centertable}{Output commands for EAPIs} |
57 |
\label{tab:output-commands} |
58 |
- \begin{tabular}{ll} |
59 |
+ \begin{tabular}{lll} |
60 |
\toprule |
61 |
\multicolumn{1}{c}{\textbf{EAPI}} & |
62 |
- \multicolumn{1}{c}{\textbf{Commands can output to stdout?}} \\ |
63 |
+ \multicolumn{1}{c}{\textbf{Commands can output to stdout?}} & |
64 |
+ \multicolumn{1}{c}{\textbf{Supports \t{eqawarn}?}} \\ |
65 |
\midrule |
66 |
- 0, 1, 2, 3, 4, 5, 6 & Yes \\ |
67 |
- 7 & No \\ |
68 |
+ 0, 1, 2, 3, 4, 5, 6 & Yes & No \\ |
69 |
+ 7 & No & Yes \\ |
70 |
\bottomrule |
71 |
\end{tabular} |
72 |
\end{centertable} |