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:
parent
15d5e52b95
commit
f1fe91af29
4
checkpkg
4
checkpkg
|
@ -33,8 +33,12 @@ if [ "$oldpkg" = "$pkgname-$pkgver-$pkgrel.pkg.tar.gz" ]; then
|
|||
fi
|
||||
|
||||
if [ ! -f $oldpkg ]; then
|
||||
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
|
||||
tar tzf $pkgname-$pkgver-$pkgrel.pkg.tar.gz > filelist
|
||||
|
|
Loading…
Reference in New Issue