Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2017-03-13 21:53:56 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-03-13 21:53:56 +0300
commitb67d9233ebf83f5d04e43060da1cec040e10ff4f (patch)
tree489154d86a49b6c244d260fe017b654d854377c0
parentcfc3fae91c0798dee68b232c446838e6ff925b01 (diff)
Added more logging
-rw-r--r--include/tests_ports_packages2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tests_ports_packages b/include/tests_ports_packages
index df34dd04..4d1b4ccf 100644
--- a/include/tests_ports_packages
+++ b/include/tests_ports_packages
@@ -870,7 +870,9 @@
Register --test-no PKGS-7387 --preqs-met ${PREQS_MET} --os Linux --weight L --network NO --category security --description "Check for GPG signing in YUM security package"
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')
+ if [ -z "${REPOS}" ]; then LogText "Result: found no repositories"; fi
for I in ${REPOS}; do
REPO=$(echo ${I} | ${AWKBINARY} -F= '{print $1}')
GPGSIGNED=$(echo ${I} | ${AWKBINARY} -F= '{print $2}')