aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-23 13:15:45 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-23 13:15:45 +0000
commit03aeff2cabe514502853208d82cc4691ca252e8f (patch)
tree78dd46555120646c6303eae6ec650015c19fcc84
parent8b4ed086d3d3e8dda47dc3ff77d45786cd23c27f (diff)
downloadpaludis-03aeff2cabe514502853208d82cc4691ca252e8f.tar.gz
paludis-03aeff2cabe514502853208d82cc4691ca252e8f.tar.xz
Don't do defaults_check on non-ebuilds
-rw-r--r--paludis/qa/defaults_check.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/qa/defaults_check.cc b/paludis/qa/defaults_check.cc
index de8f570..f76785c 100644
--- a/paludis/qa/defaults_check.cc
+++ b/paludis/qa/defaults_check.cc
@@ -19,6 +19,7 @@
#include "defaults_check.hh"
#include <paludis/match_sequence.hh>
+#include <paludis/is_file_with_extension.hh>
#include <fstream>
using namespace paludis;
@@ -61,6 +62,8 @@ DefaultsCheck::operator() (const FSEntry & f) const
if (! f.is_regular_file())
result << Message(qal_skip, "Not a regular file");
+ else if (! IsFileWithExtension(".ebuild")(f.basename()))
+ result << Message(qal_skip, "Not an ebuild file");
else
{
std::ifstream ff(stringify(f).c_str());