From 4a0580184e03ca727e2837b9f39ecb1e9a56afbf Mon Sep 17 00:00:00 2001 From: Pat Riehecky Date: Dec 01 2014 16:27:25 +0000 Subject: Some packages seem to want to know where 'topdir' is --- diff --git a/return_disttag.sh b/return_disttag.sh index 2c1e522..0048cd6 100755 --- a/return_disttag.sh +++ b/return_disttag.sh @@ -25,12 +25,12 @@ build_with_dist_scl() { SCL=${3:-} if [[ "x${SCL}" == 'x' ]]; then - result=$(rpm --define "dist ${DIST}" -q --specfile "${SPECFILE}" --qf '%{n}-%{v}-%{r}\n' 2>/dev/null | head -n 1) + result=$(rpm --define "%_topdir `pwd`" --define "dist ${DIST}" -q --specfile "${SPECFILE}" --qf '%{n}-%{v}-%{r}\n' 2>/dev/null | head -n 1) else - result=$(rpm --define "dist ${DIST}" --define "scl ${SCL}" -q --specfile "${SPECFILE}" --qf '%{n}-%{v}-%{r}\n' 2>/dev/null | head -n 1) + result=$(rpm --define "%_topdir `pwd`" --define "dist ${DIST}" --define "scl ${SCL}" -q --specfile "${SPECFILE}" --qf '%{n}-%{v}-%{r}\n' 2>/dev/null | head -n 1) fi - echo $result + echo ${result} } #####################################################################