summaryrefslogtreecommitdiff
path: root/db-functions
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-17 20:32:47 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-17 20:32:47 +0200
commit17c9dab4b420ca55fd4fb3f277805af148159a4d (patch)
treebf48b576e2d7886713d4e01cd7b2feccfc3aed2e /db-functions
parenta2b3b2bb2bde44289d41b956dde1f5bca61e581b (diff)
Add additional checks when reading PKGBUILDs
If reading from a PKGBUILD fails stop immediatly. Also put out more usefull error messages.
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions1
1 files changed, 1 insertions, 0 deletions
diff --git a/db-functions b/db-functions
index a04dbf5..292e3ff 100644
--- a/db-functions
+++ b/db-functions
@@ -304,6 +304,7 @@ check_pkgsvn() {
fi
local pkgver="$(. "${WORKDIR}/pkgbuilds/${pkgbase}"; echo "${pkgver}-${pkgrel}")"
+ [ -z "${pkgver}" ] && return 1
if echo "$(basename ${pkgfile})" | grep -q "${pkgver}-${pkgarch}"; then
return 0
else