diff options
author | Mike Gilbert <floppym@gentoo.org> | 2021-05-12 16:12:03 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2021-05-12 16:54:56 -0400 |
commit | b13d8ea802f395645a7364088a1a74738e7aecda (patch) | |
tree | 3807374e4dabd6c40c75ce24dd8644665d0b5a63 /eclass/tests | |
parent | net-dns/pdns: Mark 4.4.1 stable on amd64/x86 (diff) | |
download | gentoo-b13d8ea802f395645a7364088a1a74738e7aecda.tar.gz gentoo-b13d8ea802f395645a7364088a1a74738e7aecda.tar.bz2 gentoo-b13d8ea802f395645a7364088a1a74738e7aecda.zip |
eclass/tests: eat optional arguments passed to has_version
portageq has_version does not understand arguments like -b or
--host-root.
This fixes tests for autotools.eclass.
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass/tests')
-rw-r--r-- | eclass/tests/tests-common.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/tests/tests-common.sh b/eclass/tests/tests-common.sh index 2fc849cb69a7..a677842b6ac5 100644 --- a/eclass/tests/tests-common.sh +++ b/eclass/tests/tests-common.sh @@ -61,6 +61,9 @@ die() { } has_version() { + while [[ $1 == -* ]]; do + shift + done portageq has_version / "$@" } |