From: Mark Huang Date: Wed, 16 Aug 2006 01:56:06 +0000 (+0000) Subject: fix up missing packages warning X-Git-Tag: planetlab-4_0-rc1~62 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6609ecee3e3a1736a2ff42dd1865c91a91443eee;p=build.git fix up missing packages warning --- diff --git a/mkfedora b/mkfedora index a23e8d7c..4b0e25eb 100755 --- a/mkfedora +++ b/mkfedora @@ -13,7 +13,7 @@ # Mark Huang # Copyright (C) 2004-2006 The Trustees of Princeton University # -# $Id: mkfedora,v 1.18 2006/08/11 12:23:57 thierry Exp $ +# $Id: mkfedora,v 1.19 2006/08/16 01:23:53 mlhuang Exp $ # export PATH=/sbin:/bin:/usr/sbin:/usr/bin @@ -329,10 +329,9 @@ if [ ${#packages[*]} -gt 0 ] ; then echo "* Installing optional packages" "${packages[@]}" >&3 yum -c $vroot/etc/yum.conf --installroot=$vroot -y $excludes \ install "${packages[@]}" - missing=$(rpm --root $vroot -q "${packages[@]}" | grep "not installed") - if [ -n "$missing" ] ; then + if ! rpm --root $vroot -q "${packages[@]}" >/dev/null ; then echo "* Warning: Missing packages" - cat <<<$missing + rpm --root $vroot -q "${packages[@]}" | grep "not installed" fi fi