webbuild-sudo: switch to using rpmspec from rpm4 instead of rpm --specedit
This commit is contained in:
parent
bbcfce5260
commit
5a0fa63a96
@ -88,7 +88,7 @@ if [ "$MODE" = "specinfo" ]; then
|
|||||||
done < ${ENVPREFIX}${WORKINGHOME}/RPM/SPECS/$PACKAGE.spec
|
done < ${ENVPREFIX}${WORKINGHOME}/RPM/SPECS/$PACKAGE.spec
|
||||||
[ "$AUTOBUILDREQ_BEGIN" -a "$AUTOBUILDREQ_END" -a ! "$AUTOBUILDREQ_UNDONE" ] || \
|
[ "$AUTOBUILDREQ_BEGIN" -a "$AUTOBUILDREQ_END" -a ! "$AUTOBUILDREQ_UNDONE" ] || \
|
||||||
echo "SPECVAR_CHECK_NOAUTOBUILDREQ=1"
|
echo "SPECVAR_CHECK_NOAUTOBUILDREQ=1"
|
||||||
$SUCMDPREFIX "rpm -q --specfile ${WORKINGHOME}/RPM/SPECS/$PACKAGE.spec --specedit > ${WORKINGHOME}/RPM/SPECS/$PACKAGE.spec.tmp 2>/dev/null"
|
$SUCMDPREFIX "rpmspec -P ${WORKINGHOME}/RPM/SPECS/$PACKAGE.spec > ${WORKINGHOME}/RPM/SPECS/$PACKAGE.spec.tmp 2>/dev/null"
|
||||||
if [ -e $SPECFILE.tmp ]; then
|
if [ -e $SPECFILE.tmp ]; then
|
||||||
echo "SPECVAR_Specfile=\"$SPECFILE\""
|
echo "SPECVAR_Specfile=\"$SPECFILE\""
|
||||||
BUILDDIR=`grep -m1 "^%setup.*-n " $SPECFILE.tmp | sed "s|.*-n \([^[:space:]]*\).*|\1|"`
|
BUILDDIR=`grep -m1 "^%setup.*-n " $SPECFILE.tmp | sed "s|.*-n \([^[:space:]]*\).*|\1|"`
|
||||||
|
Loading…
Reference in New Issue
Block a user