commit:     d85de06bb7565fe73ae1fda4d1157ad8a67e1351
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  8 11:51:20 2018 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Jun  8 12:03:18 2018 +0000
URL:        https://gitweb.gentoo.org/proj/pms.git/commit/?id=d85de06b

pkg-mgr-commands: Correct 'empty' insopts behavior to match PMs

My previous fix to insopts turns out twice wrong: firstly, because I did
not really type what I meant, and secondly because package managers have
inconsistent behavior there.  Portage uses the default mode (specified
by PMS) when insopts was called with no arguments or arguments forming
an empty string; PkgCore and Paludis literally pass empty argument list
to install.  Mark the behavior as undefined to match that.

Fixes: 2955b2dfaa5599677bf33e56c7619ccc557ebfff

 pkg-mgr-commands.tex | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
index be05322..e45f9c7 100644
--- a/pkg-mgr-commands.tex
+++ b/pkg-mgr-commands.tex
@@ -725,9 +725,8 @@ function has returned.
 
 \item[docinto] As \t{into}, for install subdirectory of \t{dodoc} et al.
 
-\item[insopts] Takes zero or more arguments, and sets the options passed by 
\t{doins} et al.\
-    to the \t{install} command to them. When called with no arguments, resets 
the option list
-    to empty.
+\item[insopts] Takes one or more arguments, and sets the options passed by 
\t{doins} et al.\
+    to the \t{install} command to them. Behaviour upon encountering empty 
arguments is undefined.
 
 \item[diropts] As \t{insopts}, for \t{dodir} et al.
 

Reply via email to