diff options
author | Erich Eckner <git@eckner.net> | 2019-02-26 13:44:09 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-02-26 13:44:09 +0100 |
commit | 6f87015c4fb55b105b1566334f1ef2f2391b0759 (patch) | |
tree | 98316720f6136b2e03cd18a673c7d46fc83db888 | |
parent | d278a5bc6d15bb533a9ccfb46818e802781e6b25 (diff) | |
download | archlinuxewe.git.save-6f87015c4fb55b105b1566334f1ef2f2391b0759.tar.xz |
checkVersions: understand $pkgbase, too
-rwxr-xr-x | checkVersions | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/checkVersions b/checkVersions index e381d8a5..f8779cce 100755 --- a/checkVersions +++ b/checkVersions @@ -160,16 +160,21 @@ then elif [ $# -eq 1 ] && ${versionenErmitteln} then + unset pkgbase + unset pkgname + unset pkgver if ${archlinuxewe}; then . $1/PKGBUILD srcKnown=false else eval "$( - grep '^pkgname=' $1/PKGBUILD - grep '^pkgver=' $1/PKGBUILD + grep '^pkg(base|name|ver)=' $1/PKGBUILD )" source=(dummy) fi + if [ -n "${pkgbase}" ]; then + pkgname="${pkgbase}" + fi for src in "${source[@]}" "${source_i686[@]}" "${source_x86_64[@]}" do |