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:
Diffstat (limited to 'include/tests_ports_packages')
-rw-r--r--include/tests_ports_packages10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/tests_ports_packages b/include/tests_ports_packages
index e4234367..fa986c21 100644
--- a/include/tests_ports_packages
+++ b/include/tests_ports_packages
@@ -989,9 +989,13 @@
# Multiple ways to do this. Some require extra packages to be installed,
# others require potential firewall ports to be open, outbound. This is the
# "most friendly" way.
- LogText "Action: updating portage with emerge-webrsync"
- /usr/bin/emerge-webrsync --quiet 2> /dev/null
- LogText "Result: emerge-webrsync finished"
+ if [ ${REFRESH_REPOSITORIES} -eq 1 ]; then
+ LogText "Action: updating portage with emerge-webrsync"
+ /usr/bin/emerge-webrsync --quiet 2> /dev/null
+ LogText "Result: emerge-webrsync finished"
+ else
+ LogText "Result: using a possibly outdated repository, as updating is disabled"
+ fi
LogText "Test: checking if /usr/bin/glsa-check exists"
if [ -x /usr/bin/glsa-check ]; then
PACKAGE_AUDIT_TOOL_FOUND=1