commit:     a20b9d2daf91d342b50d255e4815e3a7f818b9ac
Author:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 22 10:59:31 2016 +0000
Commit:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
CommitDate: Fri Jul 22 10:59:31 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a20b9d2d

net-fs/openafs-kernel: fix QA issues

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 <AT> gentoo.org>

 net-fs/openafs-kernel/openafs-kernel-1.6.18.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-fs/openafs-kernel/openafs-kernel-1.6.18.2.ebuild 
b/net-fs/openafs-kernel/openafs-kernel-1.6.18.2.ebuild
index c2ab02f..9d1e5d1 100644
--- a/net-fs/openafs-kernel/openafs-kernel-1.6.18.2.ebuild
+++ b/net-fs/openafs-kernel/openafs-kernel-1.6.18.2.ebuild
@@ -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"

Reply via email to