kernel-2.eclass: Fixes for comparison code. Thanks to mgorny for review and suggestion.
authorMike Pagano <mpagano@gentoo.org>
Tue, 17 Nov 2015 13:33:02 +0000 (08:33 -0500)
committerMike Pagano <mpagano@gentoo.org>
Tue, 17 Nov 2015 13:33:02 +0000 (08:33 -0500)
eclass/kernel-2.eclass

index 5a9ea9f607813a79f305b35d6a715333de7e9aea..1a508f119aafd46d2b55b9483713c17022459e1b 100644 (file)
@@ -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