diff options
author | Allan McRae <allan@archlinux.org> | 2010-12-19 19:03:05 +1000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-01-08 17:04:18 +0100 |
commit | 62860de113c6896f817e83f9cdf766a78991a511 (patch) | |
tree | 410694c8759c7e34d002c9042155708667b22401 /checkpkg | |
parent | 14ba11dcdfc8f4e9c14b8d48a8e8009960079c4b (diff) | |
download | 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>
Diffstat (limited to 'checkpkg')
-rwxr-xr-x | checkpkg | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |