summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Chu <jason@archlinux.org>2005-02-24 04:32:43 +0000
committerJason Chu <jason@archlinux.org>2005-02-24 04:32:43 +0000
commitf1fe91af29af5215b29faa3a18031a37a48e0b25 (patch)
tree7caa23ccad17004a5c40719f6bf30c84e1ef063a
parent15d5e52b95f2330f9583ecb599a012b985989c56 (diff)
added support for file://
git-svn-id: http://projects.xennet.org/archtools/devtools/trunk@204 630f3fb4-fbd1-0310-a574-b293cca3120f
-rw-r--r--checkpkg6
1 files changed, 5 insertions, 1 deletions
diff --git a/checkpkg b/checkpkg
index f2d3bf4..8f91469 100644
--- a/checkpkg
+++ b/checkpkg
@@ -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