summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-20 10:24:17 +0200
committerErich Eckner <git@eckner.net>2017-09-20 10:24:17 +0200
commit7b10c39cd330933795aa86567d7fd598a1681263 (patch)
tree1cf4e3e6aec5a043369b6d2ca812c6158057355e
parent1a858bfb3274733c80e44da93bc9bc3b86b3a042 (diff)
downloadarchlinuxewe.git.save-7b10c39cd330933795aa86567d7fd598a1681263.tar.xz
checkVersions: be more strict and more verbose
-rwxr-xr-xcheckVersions12
1 files changed, 5 insertions, 7 deletions
diff --git a/checkVersions b/checkVersions
index 9062fd67..ddcd5019 100755
--- a/checkVersions
+++ b/checkVersions
@@ -237,12 +237,9 @@ then
tail -n1
)"
elif echo "${src}" | \
- grep -q 'git://anonscm\.debian\.org/\|^git+https\?://github\.com/'
+ grep -q 'git://anonscm\.debian\.org/\|^git+https\?://github\.com/.*#tag='
then
- src=$(
- echo "${src}" | \
- sed 's|^git+||'
- )
+ src="${src#git+}"
remVer="$(
git ls-remote --tags "${src%#*}" | \
awk '{print $2}' | \
@@ -392,7 +389,7 @@ then
tail -n1 \
)
elif echo "${src}" | \
- grep -q '//github\.com/'
+ grep -q '^https\?://github\.com/'
then
quVer=$(
echo "${src#*::}" | \
@@ -595,7 +592,8 @@ then
if ! ${srcKnown}
then
- echo "$1: Unknown src: '${source[@]}' '${source_i686[@]}' '${source_x86_64[@]}'"
+ printf '%s: Unknown source:\n' "$1"
+ printf "'%s'\n" "${source[@]}" "${source_i686[@]}" "${source_x86_64[@]}"
exit 1
fi