From d1e399476848570ddef3956f9f6ac5ded9aa51a8 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 20 Sep 2017 10:44:05 +0200 Subject: checkVersions: kann jetzt auch *-git pakete --- checkVersions | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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="$( @@ -248,6 +248,21 @@ then sort -V | \ 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 -- cgit v1.2.3-70-g09d2