diff options
author | Florian Schmaus <flow@gentoo.org> | 2022-08-14 20:46:52 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-08-14 21:43:37 +0100 |
commit | 32657fd62a4ab7616c28ea85cfaafb66695d7ab6 (patch) | |
tree | 4a5319130f8bf6f5fd6204776dccebf44df2c382 | |
parent | NEWS: update (diff) | |
download | portage-32657fd62a4ab7616c28ea85cfaafb66695d7ab6.tar.gz portage-32657fd62a4ab7616c28ea85cfaafb66695d7ab6.tar.bz2 portage-32657fd62a4ab7616c28ea85cfaafb66695d7ab6.zip |
install-qa-check.d/60pkgconfig: fix ver_test type check
Somehow, this ended up using the wrong argument to bash's 'type'
builtin. :/ It must be '-t', which prints the type of the queried
name.
Fixes: f46b89282ff5 ("install-qa-check.d/60pkgconfig: use ver_test to compare versions")
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Closes: https://github.com/gentoo/portage/pull/887
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | bin/install-qa-check.d/60pkgconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/install-qa-check.d/60pkgconfig b/bin/install-qa-check.d/60pkgconfig index e275e1ee2..20acaa7fb 100644 --- a/bin/install-qa-check.d/60pkgconfig +++ b/bin/install-qa-check.d/60pkgconfig @@ -109,7 +109,7 @@ pkgconfig_check() { local is_pms_ver=false if [[ ${QA_PKGCONFIG_VERSION} =~ ${pms_ver_re} ]] ; then # Ensure that ver_test is available. - [[ $(type -f ver_test) == function ]] || inherit eapi7-ver + [[ $(type -t ver_test) == function ]] || inherit eapi7-ver is_pms_ver=true fi |