summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2010-12-19 10:03:05 +0100
committerPierre Schmitz <pierre@archlinux.de>2011-01-08 17:04:18 +0100
commit62860de113c6896f817e83f9cdf766a78991a511 (patch)
tree410694c8759c7e34d002c9042155708667b22401
parent14ba11dcdfc8f4e9c14b8d48a8e8009960079c4b (diff)
downloaddevtools-62860de113c6896f817e83f9cdf766a78991a511.tar.gz
devtools-62860de113c6896f817e83f9cdf766a78991a511.tar.xz
checkpkg: Do not download oldpkg if in starting directory
Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rwxr-xr-xcheckpkg2
1 files changed, 2 insertions, 0 deletions
diff --git a/checkpkg b/checkpkg
index 115306e..e1667b9 100755
--- a/checkpkg
+++ b/checkpkg
@@ -69,6 +69,8 @@ for _pkgname in ${pkgname[@]}; do
cp `echo $pkgurl | sed 's#^file://##'` .
elif [ -f $PKGDEST/$oldpkg ]; then
cp $PKGDEST/$oldpkg .
+ elif [ -f $STARTDIR/$oldpkg ]; then
+ cp $STARTDIR/$oldpkg .
else
wget --quiet $pkgurl
fi