mirror of
https://git.centos.org/centos-git-common.git
synced 2025-02-23 16:22:56 +00:00
Some packages seem to want to know where 'topdir' is
This commit is contained in:
parent
3a0ccf9afb
commit
4a0580184e
1 changed files with 3 additions and 3 deletions
|
@ -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}
|
||||||
}
|
}
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
Loading…
Add table
Reference in a new issue