From 84a845a0690d6ffb96882699cdc8e9c0e497125d Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 9 Jul 2009 17:01:50 +0200 Subject: fix syntax error Signed-off-by: Aaron Griffin --- db-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'db-functions') diff --git a/db-functions b/db-functions index 830886f..966a713 100644 --- a/db-functions +++ b/db-functions @@ -78,8 +78,8 @@ getpkgver() { } check_pkg_arch () { #check_pkg_arch pkgfile arch - local arch - _arch="$(/usr/bin/bsdtar -xOf "$1" .PKGINFO | /bin/grep "^arch" | /bin/sed 's|\w*\s*=\s*\(.*\)|\1|')" + local _arch + _arch="$(/usr/bin/bsdtar -xOqf "$1" .PKGINFO | /bin/grep "^arch" | /bin/sed 's|\w*\s*=\s*\(.*\)|\1|')" if [ -z "$_arch" ]; then echo "ERROR: Package '$1' has no arch in the PKGINFO. Fail!" -- cgit v1.2.3-24-g4f1b