diff options
author | Erich Eckner <git@eckner.net> | 2019-11-14 23:02:06 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-11-14 23:02:06 +0100 |
commit | c64c42b1fe719e8348fcdced3848cc9eb19df848 (patch) | |
tree | 8cf013e2e0e6613122f468e689ff0495802c7a29 | |
parent | f5fcad7e66361f64763ade864f1eb40e3770dda5 (diff) | |
download | archlinuxewe-c64c42b1fe719e8348fcdced3848cc9eb19df848.tar.xz |
bumpPython: correctly handle submodules
-rwxr-xr-x | bumpPython | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bumpPython b/bumpPython index ddb40d7d6..c7eb39166 100755 --- a/bumpPython +++ b/bumpPython @@ -53,7 +53,16 @@ for pkgbuild in "${pkgbuilds[@]}"; do s@'"'python>=${pymajor}\.[0-9]\+'@'python>=${pyver}'"'@ s@'"'python<${pymajor}\.[0-9]\+'@'python<${pyverupper}'"'@ ' "${pkgbuild}" - git add "${pkgbuild}" + if [ -d "${pkgbuild%/*}"'/.git' ] || [ -f "${pkgbuild%/*}"'/.git' ]; then + cd "${pkgbuild%/*}" + makepkg --printsrcinfo > .SRCINFO + git commit 'PKGBUILD' '.SRCINFO' -m "${pkgbuild%/*}: rebuild against new python ${pyver}" + git push || exit 1 + cd .. + git add "${pkgbuild%/*}" + else + git add "${pkgbuild}" + fi done |