From 14f76ffc7b803806ed1589539ce0fb8a91f8961b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 2 Dec 2020 10:15:46 +0100 Subject: bumpPkgrel: check if bumpPython needs to be run, too --- bumpPkgrel | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'bumpPkgrel') diff --git a/bumpPkgrel b/bumpPkgrel index 186256399..343474554 100755 --- a/bumpPkgrel +++ b/bumpPkgrel @@ -85,6 +85,25 @@ if [ $# -ne 1 ] || ${auto_detect}; then | sort -u \ | xargs -rn1 "$0" ${commit_flag} -p "${provided}" + if ${auto_detect}; then + python_version=$( + sed ' + s/^\(3\.[0-9]\+\)\(\.[0-9.]\+\)\? python$/\1/ + t + d + ' "${provided}" + ) + if cat "${0%/*}"/*/PKGBUILD \ + | sed ' + s/^\(.* \)\?\(["'"'"']\)\?\(python>=[0-9.]\+\)\2\( .*\)\?$/\3/ + t + d + ' \ + | grep -qvxF "python>=${python_version}"; then + "${0%/*}/bumpPython" 3 + fi + fi + else cd "$(dirname "$0")" -- cgit v1.2.3-70-g09d2