added support for file://

git-svn-id: http://projects.xennet.org/archtools/devtools/trunk@204 630f3fb4-fbd1-0310-a574-b293cca3120f
This commit is contained in:
Jason Chu 2005-02-24 04:32:43 +00:00
parent 15d5e52b95
commit f1fe91af29
1 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,11 @@ if [ "$oldpkg" = "$pkgname-$pkgver-$pkgrel.pkg.tar.gz" ]; then
fi
if [ ! -f $oldpkg ]; then
wget $pkgurl
if echo $oldpkg | grep "^file:///" > /dev/null 2>&1; then
cp `echo $oldpkg | sed 's#^file://##'` .
else
wget $pkgurl
fi
fi
tar tzf $oldpkg > filelist-old