Some packages seem to want to know where 'topdir' is

This commit is contained in:
Pat Riehecky 2014-12-01 10:27:25 -06:00 committed by Johnny Hughes
parent 3a0ccf9afb
commit 4a0580184e

View file

@ -25,12 +25,12 @@ build_with_dist_scl() {
SCL=${3:-} SCL=${3:-}
if [[ "x${SCL}" == 'x' ]]; then 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 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 fi
echo $result echo ${result}
} }
##################################################################### #####################################################################