Panu Matilainen 25a06f
commit 90dd51743200055f30d9e0e0337173118b4ae756
Panu Matilainen 25a06f
Author: Panu Matilainen <pmatilai@redhat.com>
Panu Matilainen 25a06f
Date:   Thu Oct 11 17:57:10 2012 +0300
Panu Matilainen 25a06f
Panu Matilainen 25a06f
    Fix noarch __isa_* macro filter in installplatform (RhBug:865436)
Panu Matilainen 25a06f
    
Panu Matilainen 25a06f
    - The filter wasn't doing what it was supposed to due to extra single
Panu Matilainen 25a06f
      quotes getting inserted, causing "rpmbuild --target noarch foo.spec"
Panu Matilainen 25a06f
      to whine about empty macro bodies. This is a regression introduced
Panu Matilainen 25a06f
      in rpm 4.10, commit 07ec480c180e4005a629242b8f9f8ab640e3e950 to be
Panu Matilainen 25a06f
      precise.
Panu Matilainen 25a06f
Panu Matilainen 25a06f
diff --git a/installplatform b/installplatform
Panu Matilainen 25a06f
index f7ae241..a68b3c0 100755
Panu Matilainen 25a06f
--- a/installplatform
Panu Matilainen 25a06f
+++ b/installplatform
Panu Matilainen 25a06f
@@ -104,7 +104,7 @@ for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; do
Panu Matilainen 25a06f
     noarch)
Panu Matilainen 25a06f
 	CANONARCH=noarch
Panu Matilainen 25a06f
 	CANONCOLOR=0
Panu Matilainen 25a06f
-	FILTER="grep -v -E '^(%optflag|%__isa)'"
Panu Matilainen 25a06f
+	FILTER="grep -v -E ^(%optflag|%__isa)"
Panu Matilainen 25a06f
 	;;
Panu Matilainen 25a06f
   esac
Panu Matilainen 25a06f