summaryrefslogtreecommitdiffstats
path: root/checkpkg
diff options
context:
space:
mode:
Diffstat (limited to 'checkpkg')
-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