commit: 32657fd62a4ab7616c28ea85cfaafb66695d7ab6 Author: Florian Schmaus <flow <AT> gentoo <DOT> org> AuthorDate: Sun Aug 14 18:46:52 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Aug 14 20:43:37 2022 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=32657fd6
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 <AT> gentoo.org> Closes: https://github.com/gentoo/portage/pull/887 Signed-off-by: Sam James <sam <AT> gentoo.org> bin/install-qa-check.d/60pkgconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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