summaryrefslogtreecommitdiffstats
path: root/db-functions
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-10-30 03:09:28 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2009-10-30 03:09:28 +0100
commit41bf9fc77f4c7856a481552119b61c908743b28b (patch)
tree86f7faf7ecc87fd00de858f1782b9d7d3641283d /db-functions
parentee0820aa9c71e8a76f16b11c7ad77be7cb8e1ce6 (diff)
downloaddbscripts-41bf9fc77f4c7856a481552119b61c908743b28b.tar.gz
dbscripts-41bf9fc77f4c7856a481552119b61c908743b28b.tar.xz
Echo pkginfo parsing errors to stderr
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions6
1 files changed, 3 insertions, 3 deletions
diff --git a/db-functions b/db-functions
index 6611a92..a4cffd7 100644
--- a/db-functions
+++ b/db-functions
@@ -67,7 +67,7 @@ getpkgname() {
_name="$(_grep_pkginfo "$1" "^pkgname")"
if [ -z "$_name" ]; then
- echo "ERROR: Package '$1' has no pkgname in the PKGINFO. Fail!"
+ echo "ERROR: Package '$1' has no pkgname in the PKGINFO. Fail!" >&2
exit 1
fi
@@ -80,7 +80,7 @@ getpkgver() {
_ver="$(_grep_pkginfo "$1" "^pkgver")"
if [ -z "$_ver" ]; then
- echo "ERROR: Package '$1' has no pkgver in the PKGINFO. Fail!"
+ echo "ERROR: Package '$1' has no pkgver in the PKGINFO. Fail!" >&2
exit 1
fi
@@ -92,7 +92,7 @@ check_pkg_arch () { #check_pkg_arch pkgfile arch
_arch="$(_grep_pkginfo "$1" "^arch")"
if [ -z "$_arch" ]; then
- echo "ERROR: Package '$1' has no arch in the PKGINFO. Fail!"
+ echo "ERROR: Package '$1' has no arch in the PKGINFO. Fail!" >&2
return 1
fi
if [ "$_arch" = "$2" ]; then