diff options
author | Jason Chu <jason@archlinux.org> | 2005-02-24 05:32:43 +0100 |
---|---|---|
committer | Jason Chu <jason@archlinux.org> | 2005-02-24 05:32:43 +0100 |
commit | f1fe91af29af5215b29faa3a18031a37a48e0b25 (patch) | |
tree | 7caa23ccad17004a5c40719f6bf30c84e1ef063a /checkpkg | |
parent | 15d5e52b95f2330f9583ecb599a012b985989c56 (diff) | |
download | devtools-f1fe91af29af5215b29faa3a18031a37a48e0b25.tar.gz devtools-f1fe91af29af5215b29faa3a18031a37a48e0b25.tar.xz |
added support for file://
git-svn-id: http://projects.xennet.org/archtools/devtools/trunk@204 630f3fb4-fbd1-0310-a574-b293cca3120f
Diffstat (limited to 'checkpkg')
-rw-r--r-- | checkpkg | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |