summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-12-02 10:15:46 +0100
committerErich Eckner <git@eckner.net>2020-12-02 10:15:46 +0100
commit14f76ffc7b803806ed1589539ce0fb8a91f8961b (patch)
tree39ff0033f3c07c6636b5067d20a754764c2b2a75
parentaf07cc2aa70ef7488aee53779818b000b956ea7b (diff)
downloadarchlinuxewe-14f76ffc7b803806ed1589539ce0fb8a91f8961b.tar.xz
bumpPkgrel: check if bumpPython needs to be run, too
-rwxr-xr-xbumpPkgrel19
1 files changed, 19 insertions, 0 deletions
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")"