From 62860de113c6896f817e83f9cdf766a78991a511 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 19 Dec 2010 19:03:05 +1000 Subject: checkpkg: Do not download oldpkg if in starting directory Signed-off-by: Allan McRae Signed-off-by: Pierre Schmitz --- checkpkg | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3-70-g09d2