[arch-dev-public] [PATCH 3/3] checkpkg: Check package cache for old packages

Allan McRae allan at archlinux.org
Thu Oct 22 03:03:44 EDT 2009


Eric Bélanger wrote:
> Signed-off-by: Eric Bélanger <snowmaniscool at gmail.com>
> ---
>  checkpkg |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> 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
>   

You are my hero!

Now I can remove this from my TODO list:  "checkpkg is a bit shit..."

Allan




More information about the arch-dev-public mailing list