mirror of
https://git.centos.org/centos-git-common.git
synced 2025-02-24 00:32:56 +00:00
SCL macros can prevent rpmbuild from examining some spec files
--- into_srpm.sh | 8 ++++++++ return_disttag.sh | 6 ++++++ 2 files changed, 14 insertions(+), 0 deletions(-)
This commit is contained in:
parent
7520e4b130
commit
a68f527d1c
2 changed files with 14 additions and 0 deletions
|
@ -135,6 +135,14 @@ if [[ $? -ne 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ${ALLOWSCL} -eq 1 ]]; then
|
||||||
|
rpm -q scl-utils-build >/dev/null 2>&1
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
echo 'Without scl-utils-build some SCL style sources be parsed' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Set us to requested branch for further operations
|
# Set us to requested branch for further operations
|
||||||
if [[ "x${BRANCH}" != 'x' ]]; then
|
if [[ "x${BRANCH}" != 'x' ]]; then
|
||||||
if [[ $QUIET -eq 1 ]]; then
|
if [[ $QUIET -eq 1 ]]; then
|
||||||
|
|
|
@ -76,6 +76,12 @@ if [[ ! -d .git ]] || [[ ! -d SPECS ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rpm -q scl-utils-build >/dev/null 2>&1
|
||||||
|
if [[ $? -ne 0 ]]; then
|
||||||
|
echo 'Without scl-utils-build some SCL style sources be parsed' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# check metadata file and extract package name
|
# check metadata file and extract package name
|
||||||
packagename=""
|
packagename=""
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
|
|
Loading…
Add table
Reference in a new issue