summaryrefslogtreecommitdiffstats
path: root/extrapkg
diff options
context:
space:
mode:
authorJason Chu <jason@archlinux.org>2006-03-20 03:48:43 +0100
committerJason Chu <jason@archlinux.org>2006-03-20 03:48:43 +0100
commit9cc25b8cd4967167a3f44a4c65fc30f69f0e5a70 (patch)
tree2b7653639b6f79961ad29e951af3d046a00e917c /extrapkg
parent451393deb94697d1717bae4e5ecd1dce01410bad (diff)
downloaddevtools-9cc25b8cd4967167a3f44a4c65fc30f69f0e5a70.tar.gz
devtools-9cc25b8cd4967167a3f44a4c65fc30f69f0e5a70.tar.xz
look for packages in the PKGDEST directory if we can't find them locally
git-svn-id: http://projects.xennet.org/archtools/devtools/trunk@219 630f3fb4-fbd1-0310-a574-b293cca3120f
Diffstat (limited to 'extrapkg')
-rwxr-xr-xextrapkg4
1 files changed, 4 insertions, 0 deletions
diff --git a/extrapkg b/extrapkg
index e2b670a..fb9f6bc 100755
--- a/extrapkg
+++ b/extrapkg
@@ -13,6 +13,10 @@ source PKGBUILD
pkgfile=${pkgname}-${pkgver}-${pkgrel}.pkg.tar.gz
if [ ! -f $pkgfile ]; then
+ pkgfile=$PKGDEST/$pkgfile
+fi
+
+if [ ! -f $pkgfile ]; then
echo "File $pkgfile doesn't exist"
exit 1
fi