diff options
author | Mike Pagano <mpagano@gentoo.org> | 2015-11-17 08:33:02 -0500 |
---|---|---|
committer | Mike Pagano <mpagano@gentoo.org> | 2015-11-17 08:33:02 -0500 |
commit | 1e75c4123caa356c1889c94a94cef2d06d00dc1c (patch) | |
tree | 8d3daeea973c0cf4e8bbf1ce2dbe9e2f7dc896e1 /eclass | |
parent | Merge remote-tracking branch 'github/pr/369'. (diff) | |
download | gentoo-1e75c4123caa356c1889c94a94cef2d06d00dc1c.tar.gz gentoo-1e75c4123caa356c1889c94a94cef2d06d00dc1c.tar.bz2 gentoo-1e75c4123caa356c1889c94a94cef2d06d00dc1c.zip |
kernel-2.eclass: Fixes for comparison code. Thanks to mgorny for review and suggestion.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kernel-2.eclass | 3 |
1 files changed, 2 insertions, 1 deletions
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 |