diff options
| -rwxr-xr-x | Documentation/maintainers/bump_new_revision.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/maintainers/bump_new_revision.sh b/Documentation/maintainers/bump_new_revision.sh index 7a0a1cf8cdf..5c82a71b456 100755 --- a/Documentation/maintainers/bump_new_revision.sh +++ b/Documentation/maintainers/bump_new_revision.sh @@ -302,13 +302,13 @@ case ${OPERATION} in [[ ${P1/*-/} == r* ]] && P1=`echo ${P1} | sed -e "s:${P1/*-/}::g" -e "s:-$::g"` PV=${P1/*-/} PN=`echo ${P1} | sed -e "s:${P1/*-/}::g" -e "s:-$::g"` - if [[ $(echo ${EBUILD} | sed -e "s:\${PN}:${PN}:g" -e "s:\${PV}:${PV}:g" -e "s:\${P}:${PN}-${PV}:g" |grep "${PATCH}" |wc -l) != "0" ]]; then + if [[ $(echo ${EBUILD} | sed -e "s:\${PN}:${PN}:g" -e "s:\${PV}:${PV}:g" -e "s:\${P}:${PN}-${PV}:g" |grep "${PATCH}" |wc -l) -gt 0 ]]; then PATCH_IN_USE="true" popd &> /dev/null break fi done - if [[ ${PATCH_IN_USE} == "false" ]]; then + if [[ ${PATCH_IN_USE} = "false" ]]; then echo "Removing ${PATCH}. No longer used in package ${EBUILD_BASEDIR}." pushd files/ &> /dev/null git rm -rf $(find ./ -type f -name ${PATCH}) |
