From 2c7b9e58f77f9fa6bd9da6baa5ca7dc1e1b92f72 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 14 Dec 2008 01:34:31 +0100 Subject: [PATCH] builddep: optimize even more printing of required deps. --HG-- extra : convert_revision : d18f0609ab1b6cc11913577c55f0a43f7886f036 --- utils/sh/builddep_funcs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/sh/builddep_funcs.sh b/utils/sh/builddep_funcs.sh index 68a30c510f3..49581469629 100644 --- a/utils/sh/builddep_funcs.sh +++ b/utils/sh/builddep_funcs.sh @@ -146,9 +146,9 @@ install_dependencies_pkg() msg_normal "Required minimal deps for $(basename $pkg):" for i in ${installed_deps_list}; do - ipkg="$($XBPS_PKGDB_CMD list|awk '{print $1}'|grep -w ${i%-[0-9]*.*})" + ipkg=${i%-[0-9]*.*} iversion="$($XBPS_PKGDB_CMD version $ipkg)" - echo " ${i%-[0-9]*.*} >= ${i##[aA-zZ]*-}: found $ipkg-$iversion." + echo " $ipkg >= ${i##[aA-zZ]*-}: found $ipkg-$iversion." done for i in ${deps_list}; do