diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-08-17 20:32:47 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-08-17 20:32:47 +0200 |
commit | 17c9dab4b420ca55fd4fb3f277805af148159a4d (patch) | |
tree | bf48b576e2d7886713d4e01cd7b2feccfc3aed2e /db-functions | |
parent | a2b3b2bb2bde44289d41b956dde1f5bca61e581b (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-functions | 1 |
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 |