Skip to content
Permalink
Browse files
Merge pull request #2 from mer-packages/systemcheck-fix
[zypp] Only read *.check files from the systemCheck.d directory
  • Loading branch information
iamer committed Dec 30, 2013
2 parents 526f802 + df5ed05 commit ac1c1e041938aaed1758b43cf6a1cb3f7b023d0f
Showing 1 changed file with 9 additions and 2 deletions.
@@ -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;
}

0 comments on commit ac1c1e0

Please sign in to comment.