From a9cf969d5d6c241a963b46f3029adaeee5f522fd Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: May 23 2016 15:44:34 +0000 Subject: just check all the currently enabled repos --- diff --git a/tests/z_rpminfo/check-rpminfo.py b/tests/z_rpminfo/check-rpminfo.py index 7c1dfa2..960cc58 100644 --- a/tests/z_rpminfo/check-rpminfo.py +++ b/tests/z_rpminfo/check-rpminfo.py @@ -27,12 +27,6 @@ def skip(skipstring): log('Running check-rpminfo.py - Check rpminfo Attributes') -if str(os.getenv('PRE_UPDATES')) == '1': - checkrepos = ['updates'] -else: - log('Not running in preupdates, checking all repos') - checkrepos = ['extras', 'base', 'updates', 'centosplus'] - # Set the required attributes and their values here. You may use shell-style # globs in the value if necessary. required_attrs = { @@ -60,10 +54,6 @@ with open(os.path.join(sys.path[0],'special_overrides.txt'),'r') as thefile: yb = yum.YumBase() yb.conf.cache = 0 -yb.repos.disableRepo('*') - -for repo in checkrepos: - yb.repos.enableRepo(repo) yb.repos.doSetup() sack = yb.pkgSack