From b2cfde5e3d092968ecb54ac756709fcf746bbc0c Mon Sep 17 00:00:00 2001 From: Freddie Akeroyd Date: Wed, 6 Mar 2013 19:00:13 +0000 Subject: [PATCH] Fix issue caused by change of output format from rpm --showrc Refs #341 git-svn-id: https://svn.nexusformat.org/code/trunk@1887 ff5d1e40-2be0-497f-93bd-dc18237bd3c7 --- build_rpm.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_rpm.in b/build_rpm.in index 7cc66e21..8af5ce90 100755 --- a/build_rpm.in +++ b/build_rpm.in @@ -8,7 +8,7 @@ # $1 is set to any options you want to pass to ./configure # # get topdir - must find a better way ... -topdir=`rpm --showrc|grep topdir| awk '{print $3}' | tail -1` +topdir=`rpm --showrc|grep " _topdir"| awk '{print $3}' | tail -1` if test ! -e "$topdir"; then echo "Unable to determine RPM topdir from rpmrc; assuming $HOME/rpmbuild" topdir="$HOME/rpmbuild"