diff options
author | wschaft <wesley.schaft@gmail.com> | 2017-11-08 21:20:20 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2017-11-08 21:20:20 +0300 |
commit | c45333126554a279fb446a519ef35937f6442a21 (patch) | |
tree | beadfc687ad8fc1cbf71e706a6084bf873a68590 /include/tests_ports_packages | |
parent | 09de901d114afc157040e998ee3aacf82357d60d (diff) |
fixing "Repository listed more than once" issue (#449) (#490)
Diffstat (limited to 'include/tests_ports_packages')
-rw-r--r-- | include/tests_ports_packages | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_ports_packages b/include/tests_ports_packages index 84c6d57d..c69a8136 100644 --- a/include/tests_ports_packages +++ b/include/tests_ports_packages @@ -947,7 +947,7 @@ if [ ${SKIPTEST} -eq 0 ]; then if [ ! -z "${PYTHONBINARY}" ]; then LogText "Test: checking enabled repositories" - REPOS=$(${PYTHONBINARY} -c 'import yum ; yb = yum.YumBase() ; print [(r.id + "=" + str(r.gpgcheck)) for r in yb.repos.listEnabled()]' | ${GREPBINARY} "^\[" | ${TRBINARY} -d '[] ' | ${TRBINARY} -d "'" | ${SEDBINARY} 's/,/ /g') + REPOS=$(${PYTHONBINARY} -c 'import yum ; yb = yum.YumBase() ; yb.conf ; print [(r.id + "=" + str(r.gpgcheck)) for r in yb.repos.listEnabled()]' | ${GREPBINARY} "^\[" | ${TRBINARY} -d '[] ' | ${TRBINARY} -d "'" | ${SEDBINARY} 's/,/ /g') if [ -z "${REPOS}" ]; then LogText "Result: found no repositories"; fi for I in ${REPOS}; do REPO=$(echo ${I} | ${AWKBINARY} -F= '{print $1}') |