Increase the scope of the nobuildarches

We don't need to do some config work if we're not doing
an arch build.
This commit is contained in:
Laura Abbott 2019-11-06 12:59:50 -05:00
parent dba7671694
commit 897c1bc38d
1 changed files with 6 additions and 3 deletions

View File

@ -1368,6 +1368,12 @@ pathfix.py -i "%{__python3} %{py3_shbang_opts}" -p -n \
Documentation \
scripts/gen_compile_commands.py
# only deal with configs if we are going to build for the arch
%ifnarch %nobuildarches
if [ -L configs ]; then
rm -f configs
fi
# Deal with configs stuff
mkdir configs
cd configs
@ -1390,9 +1396,6 @@ do
done
%endif
# only deal with configs if we are going to build for the arch
%ifnarch %nobuildarches
%if !%{debugbuildsenabled}
rm -f kernel-%{version}-*debug.config
%endif