---
 mock.spec | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/mock.spec b/mock.spec
index ac6a29c..b2c24b3 100644
--- a/mock.spec
+++ b/mock.spec
@@ -228,8 +228,10 @@ fi
 :
 
 %check
+%if %{use_python3}
 # ignore the errors for now, just print them and hopefully somebody will fix 
it one day
 python3-pylint py/mockbuild/ py/*.py py/mockbuild/plugins/* || :
+%endif
 
 %files -f %{name}.cfgs
 %defattr(-, root, root)
@@ -280,6 +282,7 @@ python3-pylint py/mockbuild/ py/*.py py/mockbuild/plugins/* 
|| :
 * Sun Nov 26 2017 Todd Zullinger <[email protected]> - 1.3.5-2
 - install bash-completion file in proper place for el6
 - own bash-completion dir
+- only call python3-pylint in %%check if %%use_python3 is set
 
 * Thu Mar 02 2017 Miroslav Suchý <[email protected]> 1.3.5-1
 - fix path to "df" [RHBZ#1428301] ([email protected])
-- 
2.15.0
_______________________________________________
buildsys mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to