1 |
commit: d85de06bb7565fe73ae1fda4d1157ad8a67e1351 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 8 11:51:20 2018 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 8 12:03:18 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=d85de06b |
7 |
|
8 |
pkg-mgr-commands: Correct 'empty' insopts behavior to match PMs |
9 |
|
10 |
My previous fix to insopts turns out twice wrong: firstly, because I did |
11 |
not really type what I meant, and secondly because package managers have |
12 |
inconsistent behavior there. Portage uses the default mode (specified |
13 |
by PMS) when insopts was called with no arguments or arguments forming |
14 |
an empty string; PkgCore and Paludis literally pass empty argument list |
15 |
to install. Mark the behavior as undefined to match that. |
16 |
|
17 |
Fixes: 2955b2dfaa5599677bf33e56c7619ccc557ebfff |
18 |
|
19 |
pkg-mgr-commands.tex | 5 ++--- |
20 |
1 file changed, 2 insertions(+), 3 deletions(-) |
21 |
|
22 |
diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex |
23 |
index be05322..e45f9c7 100644 |
24 |
--- a/pkg-mgr-commands.tex |
25 |
+++ b/pkg-mgr-commands.tex |
26 |
@@ -725,9 +725,8 @@ function has returned. |
27 |
|
28 |
\item[docinto] As \t{into}, for install subdirectory of \t{dodoc} et al. |
29 |
|
30 |
-\item[insopts] Takes zero or more arguments, and sets the options passed by \t{doins} et al.\ |
31 |
- to the \t{install} command to them. When called with no arguments, resets the option list |
32 |
- to empty. |
33 |
+\item[insopts] Takes one or more arguments, and sets the options passed by \t{doins} et al.\ |
34 |
+ to the \t{install} command to them. Behaviour upon encountering empty arguments is undefined. |
35 |
|
36 |
\item[diropts] As \t{insopts}, for \t{dodir} et al. |