From c75f35be504b6ae0d4d03b79a808d77e9144bc9a Mon Sep 17 00:00:00 2001 From: Jason Chu Date: Mon, 19 Jul 2004 05:43:20 +0000 Subject: actually fixed the problem this time git-svn-id: http://projects.xennet.org/archtools/devtools/trunk@142 630f3fb4-fbd1-0310-a574-b293cca3120f --- checkpkg | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'checkpkg') diff --git a/checkpkg b/checkpkg index 9f8d9fc..f2d3bf4 100644 --- a/checkpkg +++ b/checkpkg @@ -16,7 +16,14 @@ if [ ! -f $pkgname-$pkgver-$pkgrel.pkg.tar.gz ]; then exit 1 fi -pkgurl=`pacman -Sp --noconfirm $pkgname | rev | cut -d ' ' -f 1 | rev` +tmp=`pacman -Sp --noconfirm $pkgname` + +if [ $? -ne 0 ]; then + echo "Couldn't download previous package." + exit 1 +fi + +pkgurl=`echo $tmp | rev | cut -d ' ' -f 1 | rev` oldpkg=`strip_url $pkgurl` -- cgit v1.2.3-24-g4f1b