From 2ff3e57296cda5f7f4b72671314bb46413ec3d09 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Tue, 25 Jun 2013 13:51:47 +0000 Subject: [PATCH] bug 3474 for removing the rpm error message on ubuntu/debian git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16744 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/otherpkgs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index 14352c420..df8d504d1 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -393,7 +393,7 @@ hasdpkg=0 supdatecommand="rpm -Uvh --replacepkgs" sremovecommand="rpm -ev" -result=`rpm --version` +result=`rpm --version 2>/dev/null` if [ $? -eq 0 ]; then hasrpm=1 result=`rpm -q yum`