summaryrefslogtreecommitdiff
path: root/checkVersions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-05-04 09:31:48 +0200
committerErich Eckner <git@eckner.net>2021-05-04 09:31:48 +0200
commit2aa7de94f8b89a32961e33163306595c45a9ce0e (patch)
treee2593de4474c895161a6d7346c8136d3ad47988c /checkVersions
parenta52517e186bc077b3c94aff95d0d0ae1de36990b (diff)
downloadarchlinuxewe-2aa7de94f8b89a32961e33163306595c45a9ce0e.tar.xz
checkVersions: use pkgver() if source is empty
Diffstat (limited to 'checkVersions')
-rwxr-xr-xcheckVersions6
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}