summaryrefslogtreecommitdiff
path: root/eclass/tests/tests-common.sh
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-05-22 07:31:18 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-05-22 07:31:18 +0100
commit908778078736bd36f7a60a2d576d415cb8e000fa (patch)
treec6a4796c48b608c14dc7e9674cdbd38f905e3c15 /eclass/tests/tests-common.sh
parent185fa19bbf68a4d4dca534d2b46729207a177f16 (diff)
gentoo resync : 22.05.2021
Diffstat (limited to 'eclass/tests/tests-common.sh')
-rw-r--r--eclass/tests/tests-common.sh3
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 / "$@"
}