summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-20 10:44:05 +0200
committerErich Eckner <git@eckner.net>2017-09-20 10:44:05 +0200
commitd1e399476848570ddef3956f9f6ac5ded9aa51a8 (patch)
treeb58466aea0b7628dfd64776c93c29f5817d6cd68
parent7b10c39cd330933795aa86567d7fd598a1681263 (diff)
downloadarchlinuxewe.git.save-d1e399476848570ddef3956f9f6ac5ded9aa51a8.tar.xz
checkVersions: kann jetzt auch *-git pakete
-rwxr-xr-xcheckVersions17
1 files changed, 16 insertions, 1 deletions
diff --git a/checkVersions b/checkVersions
index ddcd5019..00062ce7 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="$(