From df5ed05b00047b0f761baef96f8fbc8096db0d9f Mon Sep 17 00:00:00 2001 From: Juha Kallioinen Date: Mon, 30 Dec 2013 16:13:29 +0200 Subject: [PATCH] [zypp] Only read *.check files from the systemCheck.d directory Signed-off-by: Juha Kallioinen --- libzypp/zypp/solver/detail/SystemCheck.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libzypp/zypp/solver/detail/SystemCheck.cc b/libzypp/zypp/solver/detail/SystemCheck.cc index ae1583e..3bc58cc 100644 --- a/libzypp/zypp/solver/detail/SystemCheck.cc +++ b/libzypp/zypp/solver/detail/SystemCheck.cc @@ -131,9 +131,16 @@ namespace zypp filesystem::dirForEach(_dir, [this](const Pathname & dir_r, const char *const & name_r)->bool { + const std::string wanted = ".check"; Pathname pth = dir_r/name_r; - MIL << "Reading " << pth << endl; - return loadFile(pth, false /* do not reset caps */); + if (pth.extension() != wanted) { + MIL << "Skipping " << pth << " (not a *.check file)" << endl; + return true; + } + else { + MIL << "Reading " << pth << endl; + return loadFile(pth, false /* do not reset caps */); + } }); return true; }