net-fs/openafs-kernel: fix QA issues
authorAndrew Savchenko <bircoph@gentoo.org>
Fri, 22 Jul 2016 10:59:31 +0000 (13:59 +0300)
committerAndrew Savchenko <bircoph@gentoo.org>
Fri, 22 Jul 2016 10:59:31 +0000 (13:59 +0300)
Fix REPLACING_VERSIONS QA issues found by mgorny and noted on the
gentoo-dev ML:
https://archives.gentoo.org/gentoo-dev/message/52cbd5985e05a4ed949d451d66f6e8bf

Package-Manager: portage-2.3.0
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
net-fs/openafs-kernel/openafs-kernel-1.6.18.2.ebuild

index c2ab02f63ab389f7dc1e77eea80f2c2c471a2b13..9d1e5d134c81f7f9cb62a115ac12709eeb3ce795 100644 (file)
@@ -114,7 +114,7 @@ pkg_postinst() {
        use kernel_FreeBSD && /usr/sbin/kldxref "${EPREFIX}/boot/modules"
        use kernel_linux && linux-mod_pkg_postinst
 
-       if use kernel_linux && [[ ${REPLACING_VERSIONS} < "1.6.18.2" ]]; then
+       if use kernel_linux && ! version_is_at_least 1.6.18.2 ${REPLACING_VERSIONS}; then
                ewarn "As of OpenAFS 1.6.18.2, Gentoo's packaging no longer requires"
                ewarn "that CONFIG_DEBUG_RODATA be turned off in one's kernel config."
                ewarn "If you only turned this option off for OpenAFS, please re-enable"