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
This commit is contained in:
Jason Chu 2006-03-20 02:48:43 +00:00
parent 451393deb9
commit 9cc25b8cd4
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@ fi
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