From 9cebc1a2d0b1e01becb184d68a5ce228daa8a79d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 22 Oct 2011 01:05:59 +0200 Subject: [PATCH] xbps-src: speed up a bit check_installed_packages(). --- xbps-src/shutils/check_installed_packages.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xbps-src/shutils/check_installed_packages.sh b/xbps-src/shutils/check_installed_packages.sh index 652fbfd4e31..a5c49736431 100644 --- a/xbps-src/shutils/check_installed_packages.sh +++ b/xbps-src/shutils/check_installed_packages.sh @@ -25,6 +25,12 @@ # # Check installed package versions against the source packages repository. # + +# A simple wrapper to speed it up a bit. +Add_dependency() { + : +} + check_installed_packages() { local f lpkgn lpkgver rv srcpkgver @@ -41,6 +47,7 @@ check_installed_packages() . ${XBPS_SRCPKGDIR}/${lpkgn}/template if [ -r ${XBPS_SRCPKGDIR}/${lpkgn}/${lpkgn}.template ]; then unset revision + sourcepkg=$pkgname . ${XBPS_SRCPKGDIR}/${lpkgn}/${lpkgn}.template fi if [ -n "$revision" ]; then @@ -53,7 +60,7 @@ check_installed_packages() if [ $rv -eq 255 ]; then echo "[$XBPS_MASTERDIR] ${f} < ${srcpkgver} [srcpkgs]" fi - reset_tmpl_vars + unset pkgname version revision done msg_normal "done.\n" }