Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: man/
Date: Thu, 23 Jan 2014 01:06:18
Message-Id: 1390439127.669ccb584f4d39b764223ae44cb2d45ac6eb3903.vapier@gentoo
1 commit: 669ccb584f4d39b764223ae44cb2d45ac6eb3903
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 22 21:18:23 2014 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 23 01:05:27 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=669ccb58
7
8 ebuild(5): document the "has" function
9
10 ---
11 man/ebuild.5 | 12 +++++++-----
12 1 file changed, 7 insertions(+), 5 deletions(-)
13
14 diff --git a/man/ebuild.5 b/man/ebuild.5
15 index 524006a..32c3ea6 100644
16 --- a/man/ebuild.5
17 +++ b/man/ebuild.5
18 @@ -1049,15 +1049,17 @@ of \fI\-\-without\-\fR. Beginning with \fBEAPI 4\fR, an empty \fIconfigure
19 opt\fR argument is recognized. In \fBEAPI 3\fR and earlier, an empty
20 \fIconfigure opt\fR argument is treated as if it weren't provided.
21 .TP
22 -.B hasv\fR \fI<item>\fR \fI<item list>
23 -If \fIitem\fR is in \fIitem list\fR, then \fIitem\fR is echoed and \fBhasv\fR
24 -returns 0. Otherwise, nothing is echoed and 1 is returned. As indicated with
25 -use, there is a non\-echoing version \fBhas\fR. Please use \fBhas\fR in all
26 -places where output is to be disregarded. Never use the output for calculation.
27 +.B has\fR \fI<item>\fR \fI<item list>
28 +If \fIitem\fR is in \fIitem list\fR, then \fBhas\fR returns
29 +0. Otherwise, 1 is returned. There is another version, \fBhasv\fR, that
30 +will conditionally echo \fIitem\fR.
31 .br
32 The \fIitem list\fR is delimited by the \fIIFS\fR variable. This variable
33 has a default value of ' ', or a space. It is a \fBbash\fR(1) setting.
34 .TP
35 +.B hasv\fR \fI<item>\fR \fI<item list>
36 +Like \fBhas\fR, but also echoes \fIitem\fR when \fBhas\fR returns true.
37 +.TP
38 .B has_version\fR \fI[\-\-host\-root]\fR \fI<category/package\-version>
39 Check to see if \fIcategory/package\-version\fR is installed on the system.
40 The parameter accepts all values that are acceptable in the \fBDEPEND\fR