check if installed
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Thu, 22 Jul 2010 07:33:25 +0000 (09:33 +0200)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Thu, 22 Jul 2010 07:33:25 +0000 (09:33 +0200)
build.common

index 9e7d3b1..63956ca 100644 (file)
@@ -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