Fix noarch __isa_* macro filter in installplatform (RhBug:865436)
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 11 Oct 2012 14:57:10 +0000 (17:57 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 11 Oct 2012 14:57:10 +0000 (17:57 +0300)
- The filter wasn't doing what it was supposed to due to extra single
  quotes getting inserted, causing "rpmbuild --target noarch foo.spec"
  to whine about empty macro bodies. This is a regression introduced
  in rpm 4.10, commit 07ec480c180e4005a629242b8f9f8ab640e3e950 to be
  precise.

installplatform

index f7ae241..a68b3c0 100755 (executable)
@@ -104,7 +104,7 @@ for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; do
     noarch)
        CANONARCH=noarch
        CANONCOLOR=0
-       FILTER="grep -v -E '^(%optflag|%__isa)'"
+       FILTER="grep -v -E ^(%optflag|%__isa)"
        ;;
   esac