[arch-dev-public] [PATCH] checkpkg: Do not download oldpkg if in starting directory
Signed-off-by: Allan McRae <allan@archlinux.org> --- checkpkg | 2 ++ 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 -- 1.7.3.4
Signed-off-by: Allan McRae <allan@archlinux.org> --- checkpkg | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/checkpkg b/checkpkg index e1667b9..38e33ad 100755 --- a/checkpkg +++ b/checkpkg @@ -92,6 +92,7 @@ for _pkgname in ${pkgname[@]}; do echo -n "${i}: " objdump -p $i | grep SONAME done + cd .. else echo "No soname differences for $_pkgname." fi -- 1.7.3.4
participants (1)
-
Allan McRae