From 897c1bc38db23dcf437f999d834cfb1fa5078d09 Mon Sep 17 00:00:00 2001 From: Laura Abbott Date: Wed, 6 Nov 2019 12:59:50 -0500 Subject: [PATCH] Increase the scope of the nobuildarches We don't need to do some config work if we're not doing an arch build. --- kernel.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/kernel.spec b/kernel.spec index 101240c54..83064524d 100644 --- a/kernel.spec +++ b/kernel.spec @@ -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