kernel-2.eclass: Fix for git-sources 4.4_rcX
authorMike Pagano <mpagano@gentoo.org>
Mon, 16 Nov 2015 23:37:55 +0000 (18:37 -0500)
committerMike Pagano <mpagano@gentoo.org>
Mon, 16 Nov 2015 23:37:55 +0000 (18:37 -0500)
eclass/kernel-2.eclass

index 0f47b8c3db802cece142a35695d10a0308122322..5a9ea9f607813a79f305b35d6a715333de7e9aea 100644 (file)
@@ -1079,9 +1079,9 @@ unipatch() {
                        # https://bugs.gentoo.org/show_bug.cgi?id=507656                   #
                        ####################################################################
                        if [[ ${PN} == "git-sources" ]] ; then
-                               if [[ ${KV_MAJOR}${KV_PATCH} -ge 315 && ${RELEASETYPE} == -rc ]] ; then
+                               if [[ ${KV_MAJOR}.${KV_PATCH} > 3.15 && ${RELEASETYPE} == -rc ]] ; then
                                        ebegin "Applying ${i/*\//} (-p1)"
-                                       if [ $(patch -p1 --no-backup-if-mismatch -f < ${i} >> ${STDERR_T}) "$?" -eq 0 ]; then
+                                       if [ $(patch -p1 --no-backup-if-mismatch -f < ${i} >> ${STDERR_T}) "$?" -le 2 ]; then
                                                eend 0
                                                rm ${STDERR_T}
                                                break