From 41bf9fc77f4c7856a481552119b61c908743b28b Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Thu, 29 Oct 2009 19:09:28 -0700 Subject: Echo pkginfo parsing errors to stderr Signed-off-by: Aaron Griffin --- db-functions | 6 +++--- 1 file 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 -- cgit v1.2.3-24-g4f1b