From 1e75c4123caa356c1889c94a94cef2d06d00dc1c Mon Sep 17 00:00:00 2001 From: Mike Pagano Date: Tue, 17 Nov 2015 08:33:02 -0500 Subject: [PATCH] kernel-2.eclass: Fixes for comparison code. Thanks to mgorny for review and suggestion. --- eclass/kernel-2.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index 5a9ea9f60781..1a508f119aaf 100644 --- a/eclass/kernel-2.eclass +++ b/eclass/kernel-2.eclass @@ -1079,7 +1079,8 @@ unipatch() { # https://bugs.gentoo.org/show_bug.cgi?id=507656 # #################################################################### if [[ ${PN} == "git-sources" ]] ; then - if [[ ${KV_MAJOR}.${KV_PATCH} > 3.15 && ${RELEASETYPE} == -rc ]] ; then + if [[ ${KV_MAJOR} -gt 3 || ( ${KV_MAJOR} -eq 3 && ${KV_PATCH} -gt 15 ) && + ${RELEASETYPE} == -rc ]] ; then ebegin "Applying ${i/*\//} (-p1)" if [ $(patch -p1 --no-backup-if-mismatch -f < ${i} >> ${STDERR_T}) "$?" -le 2 ]; then eend 0 -- 2.26.2