Commit ac1c1e04 by iamer

Merge pull request #2 from mer-packages/systemcheck-fix

[zypp] Only read *.check files from the systemCheck.d directory
2 parents 526f802d df5ed05b
......@@ -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;
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!