diff options
author | Erich Eckner <git@eckner.net> | 2017-09-20 10:24:17 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-20 10:24:17 +0200 |
commit | 7b10c39cd330933795aa86567d7fd598a1681263 (patch) | |
tree | 1cf4e3e6aec5a043369b6d2ca812c6158057355e /checkVersions | |
parent | 1a858bfb3274733c80e44da93bc9bc3b86b3a042 (diff) | |
download | archlinuxewe-7b10c39cd330933795aa86567d7fd598a1681263.tar.xz |
checkVersions: be more strict and more verbose
Diffstat (limited to 'checkVersions')
-rwxr-xr-x | checkVersions | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/checkVersions b/checkVersions index 9062fd67e..ddcd50197 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 |