From 61e8cd97fb01997859b135dc0741beff7911c6f5 Mon Sep 17 00:00:00 2001 From: Eric Bélanger Date: Thu, 22 Oct 2009 03:03:53 -0400 Subject: checkpkg: Check package cache for old packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Bélanger Signed-off-by: Aaron Griffin --- checkpkg | 2 ++ 1 file changed, 2 insertions(+) (limited to 'checkpkg') diff --git a/checkpkg b/checkpkg index be549bf..e4e7e0a 100755 --- a/checkpkg +++ b/checkpkg @@ -63,6 +63,8 @@ for _pkgname in ${pkgname[@]}; do if [ ! -f $oldpkg ]; then if echo $pkgurl | grep "^file:///" > /dev/null 2>&1; then cp `echo $pkgurl | sed 's#^file://##'` . + elif [ -f $PKGDEST/$oldpkg ]; then + cp $PKGDEST/$oldpkg . else wget --quiet $pkgurl fi -- cgit v1.2.3-70-g09d2