commit: 102c79b20729ed95b8759c612eee0f4404decc8d Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Sep 16 05:50:05 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Sep 16 05:50:05 2023 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=102c79b2
man: ebuild(5): fix has_version argument It takes a dependency specification, not just a package name and version. (e.g. it accepts USE flags, like app-misc/foo[x]). Signed-off-by: Sam James <sam <AT> gentoo.org> man/ebuild.5 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/man/ebuild.5 b/man/ebuild.5 index 9dd14d8afb..cce5451755 100644 --- a/man/ebuild.5 +++ b/man/ebuild.5 @@ -1177,10 +1177,10 @@ has a default value of ' ', or a space. It is a \fBbash\fR(1) setting. Like \fBhas\fR, but also echoes \fIitem\fR when \fBhas\fR returns true. Banned in \fBEAPI 8\fR. .TP -.B has_version\fR \fI[\-b]\fR \fI[\-d]\fR \fI[\-r]\fR \fI[\-\-host\-root]\fR \fI<category/package\-version> -Check to see if \fIcategory/package\-version\fR is installed. The +.B has_version\fR \fI[\-b]\fR \fI[\-d]\fR \fI[\-r]\fR \fI[\-\-host\-root]\fR \fI<dependency specification> +Check to see if \fI<dependency specification>\fR is installed. The parameter accepts all values that are acceptable in the \fBDEPEND\fR -variable. The function returns 0 if \fIcategory/package\-version\fR +variable. The function returns 0 if \fI<dependency specification>\fR is installed, 1 otherwise. The package is searched for in \fBROOT\fR by default.
