nvidia-driver.eclass: Fix GPU vs version compatibility check
authorJeroen Roovers <jer@gentoo.org>
Mon, 2 Dec 2019 10:08:30 +0000 (11:08 +0100)
committerJeroen Roovers <jer@gentoo.org>
Mon, 2 Dec 2019 10:14:32 +0000 (11:14 +0100)
commitab0fb1519721067734702a3d4f2fa91c968eaa34
tree766869ba1259641afa944720ec30fd6a0391d5b1
parentb2e2f094624e2d5a2c0ba88c0b2d393fda39fb20
nvidia-driver.eclass: Fix GPU vs version compatibility check

- In commit 245f417b539760ccf4939630f2c6b826ce34a556 I replaced
version_compare() with ver_test but failed to properly adjust the check
from the "is at least" return value to its ver_test equivalent. Invert
the test return value for clarity and check for a version mask less than
PV.
- Use lower case for local variable name.
- Fix a comment while there.

Fixes: https://bugs.gentoo.org/701734
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Tested-by: Kobboi
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
eclass/nvidia-driver.eclass