From f1fe91af29af5215b29faa3a18031a37a48e0b25 Mon Sep 17 00:00:00 2001 From: Jason Chu Date: Thu, 24 Feb 2005 04:32:43 +0000 Subject: added support for file:// git-svn-id: http://projects.xennet.org/archtools/devtools/trunk@204 630f3fb4-fbd1-0310-a574-b293cca3120f --- checkpkg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'checkpkg') 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 -- cgit v1.2.3-70-g09d2