diff options
author | Erich Eckner <git@eckner.net> | 2017-09-20 10:44:05 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-20 10:44:05 +0200 |
commit | d1e399476848570ddef3956f9f6ac5ded9aa51a8 (patch) | |
tree | b58466aea0b7628dfd64776c93c29f5817d6cd68 | |
parent | 7b10c39cd330933795aa86567d7fd598a1681263 (diff) | |
download | archlinuxewe-d1e399476848570ddef3956f9f6ac5ded9aa51a8.tar.xz |
checkVersions: kann jetzt auch *-git pakete
-rwxr-xr-x | checkVersions | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/checkVersions b/checkVersions index ddcd50197..00062ce7a 100755 --- a/checkVersions +++ b/checkVersions @@ -237,7 +237,7 @@ then tail -n1 )" elif echo "${src}" | \ - grep -q 'git://anonscm\.debian\.org/\|^git+https\?://github\.com/.*#tag=' + grep -q '^git://anonscm\.debian\.org/\|^git+https\?://github\.com/.*#tag=' then src="${src#git+}" remVer="$( @@ -249,6 +249,21 @@ then tail -n1 )" elif echo "${src}" | \ + grep -q '^git\(+[^:]\+\)\?://[^#]\+$' + then + remVer=$( + set -e + tmp_dir=$(mktemp -d) + trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT + cp -r "${pkgname}" "${tmp_dir}" + cd "${tmp_dir}/${pkgname}" + makepkg -ofcr --noprepare >/dev/null 2>&1 + makepkg --printsrcinfo | \ + grep '^\s*pkgver\s*=' | \ + sed 's|^.*=\s*||' + ) || \ + continue + elif echo "${src}" | \ grep -q "^https://pypi\.python\.org/packages/" then qu="$( |