index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Jason Chu <jason@archlinux.org> | 2004-07-19 05:43:20 +0000 |
---|---|---|
committer | Jason Chu <jason@archlinux.org> | 2004-07-19 05:43:20 +0000 |
commit | c75f35be504b6ae0d4d03b79a808d77e9144bc9a (patch) | |
tree | cfb298a21c38efb985477dcaf72cb1dfd43dc233 | |
parent | ae4713adaa1774395aab836fabd219334199b63e (diff) |
-rw-r--r-- | checkpkg | 9 |
@@ -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` |