pck-update.in: recreate SRPM after updating build requirements block

This commit is contained in:
Silvan Calarco 2021-04-18 15:05:56 +02:00
parent 404ccd61a8
commit 308cd6bb7b

View File

@ -2414,6 +2414,11 @@ ${NOTE}"$"replacing the AUTOBUILDREQ block by:""${NORM}"
sed -i -ne "/## AUTOBUILDREQ-BEGIN/{p;r $frequires" \
-e ':a;n;/## AUTOBUILDREQ-END/{p;b};ba};p' \
$SRPM_SPECFILE_WITH_PATH
notify.note "
${NOTE}"$"recreating the SRPM""${NORM}"
eval "\
rpmbuild -bs $USER_RPMDEFINE_OPTS $rpmbuild_opts \
$SRPM_SPECFILE_WITH_PATH 2>&1"
fi
rm -f $frequires