From: Barış Metin Date: Thu, 22 Jul 2010 07:33:25 +0000 (+0200) Subject: check if installed X-Git-Tag: 5.0-rc14~11 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=b221b4d7cbb5b7d14da45abe09aff0cdf3381f42;p=build.git check if installed --- diff --git a/build.common b/build.common index 9e7d3b14..63956ca4 100644 --- a/build.common +++ b/build.common @@ -437,7 +437,8 @@ fi ln -s initrd-*${pldistro}* initrd-boot ln -s initrd-*${pldistro}* initrd-bootsmp # we let kernel-debug to be installed to satisfy dependencies. it's time to clean up. - rpm -e --nodeps --root $vroot kernel-debug + rpm --root $vroot -q kernel-debug >& /dev/null + if [ $? -eq 0 ]; then rpm -e --nodeps --root $vroot kernel-debug; fi popd return 0