commit:     c5f28a3d0a5b4ab6959b9223e6299e8502e0b7bd
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  9 10:41:39 2024 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Sat Nov  9 10:49:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5f28a3d

rust.eclass: Fix conditional for ensuring that RUST_MIN_VER is set

The check was negated meaning that RUST_MIN_VER would only be set when
it was not required.

Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>

 eclass/rust.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/rust.eclass b/eclass/rust.eclass
index 08f935a821a8..ca71c6535061 100644
--- a/eclass/rust.eclass
+++ b/eclass/rust.eclass
@@ -144,7 +144,7 @@ _rust_set_globals() {
 
        # If RUST_MIN_VER is older than our oldest slot we'll just set it to 
that
        # internally so we don't have to worry about it later.
-       if ! ver_test "${_RUST_SLOTS_ORDERED[-1]}" -gt "${RUST_MIN_VER:-0}"; 
then
+       if ver_test "${_RUST_SLOTS_ORDERED[-1]}" -gt "${RUST_MIN_VER:-0}"; then
                RUST_MIN_VER="${_RUST_SLOTS_ORDERED[-1]}"
        fi
 

Reply via email to