diff options
author | Erich Eckner <git@eckner.net> | 2020-12-02 10:15:46 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-12-02 10:15:46 +0100 |
commit | 14f76ffc7b803806ed1589539ce0fb8a91f8961b (patch) | |
tree | 39ff0033f3c07c6636b5067d20a754764c2b2a75 /bumpPkgrel | |
parent | af07cc2aa70ef7488aee53779818b000b956ea7b (diff) | |
download | archlinuxewe.git.save-14f76ffc7b803806ed1589539ce0fb8a91f8961b.tar.xz |
bumpPkgrel: check if bumpPython needs to be run, too
Diffstat (limited to 'bumpPkgrel')
-rwxr-xr-x | bumpPkgrel | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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")" |