[yum] Fix test on updatesd exclude, add %check back but disabled atm. (BZ 721170).
James Antill
james at fedoraproject.org
Fri Aug 5 17:39:41 UTC 2011
commit 4e23d43b2c5126affb6ef40275ab07b34f858038
Author: James Antill <james at and.org>
Date: Fri Aug 5 13:39:22 2011 -0400
Fix test on updatesd exclude, add %check back but disabled atm. (BZ 721170).
yum.spec | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/yum.spec b/yum.spec
index 324a0c5..8016d22 100644
--- a/yum.spec
+++ b/yum.spec
@@ -1,6 +1,7 @@
%define move_yum_conf_back 1
%define auto_sitelib 1
%define yum_updatesd 0
+%define disable_check 1
%if %{auto_sitelib}
@@ -146,6 +147,11 @@ Install this package if you want auto yum updates nightly via cron.
%build
make
+%if !%{disable_check}
+%check
+make check
+%endif
+
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
@@ -267,7 +273,7 @@ exit 0
%{_sysconfdir}/bash_completion.d
%dir %{_datadir}/yum-cli
%{_datadir}/yum-cli/*
-%if !%{yum_updatesd}
+%if %{yum_updatesd}
%exclude %{_datadir}/yum-cli/yumupd.py*
%endif
%{_bindir}/yum
More information about the scm-commits
mailing list