diff options
author | Erich Eckner <git@eckner.net> | 2021-05-04 09:31:48 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-05-04 09:31:48 +0200 |
commit | 2aa7de94f8b89a32961e33163306595c45a9ce0e (patch) | |
tree | e2593de4474c895161a6d7346c8136d3ad47988c /checkVersions | |
parent | a52517e186bc077b3c94aff95d0d0ae1de36990b (diff) | |
download | archlinuxewe-2aa7de94f8b89a32961e33163306595c45a9ce0e.tar.xz |
checkVersions: use pkgver() if source is empty
Diffstat (limited to 'checkVersions')
-rwxr-xr-x | checkVersions | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/checkVersions b/checkVersions index a5b4afc04..c0da4b8b0 100755 --- a/checkVersions +++ b/checkVersions @@ -1191,7 +1191,11 @@ then if [ -z "${source[*]}${source_i686[*]}${source_x86_64[*]}" ]; then srcKnown=true - remVer="${pkgver}" + if declare -f pkgver >/dev/null; then + remVer=$(pkgver) + else + remVer="${pkgver}" + fi fi if ! ${srcKnown} |