aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-22 23:06:54 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-22 23:06:54 +0000
commitb57f64531e6948f7766249872ea139ac987f8b76 (patch)
treef719637716fa4c8a71b7c807fadf80df9fcb91c2
parent0591899d52f2a198f1ab5a78011f291636932021 (diff)
downloadpaludis-b57f64531e6948f7766249872ea139ac987f8b76.tar.gz
paludis-b57f64531e6948f7766249872ea139ac987f8b76.tar.xz
Ignore comments.
-rw-r--r--paludis/qa/defaults_check.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/paludis/qa/defaults_check.cc b/paludis/qa/defaults_check.cc
index 5aabfbd..de8f570 100644
--- a/paludis/qa/defaults_check.cc
+++ b/paludis/qa/defaults_check.cc
@@ -47,6 +47,7 @@ DefaultsCheck::operator() (const FSEntry & f) const
static const MatchRule r_einfo(*MatchRule("\t") >> MatchRule("einfo"));
static const MatchRule r_colon(*MatchRule("\t") >> MatchRule(":"));
static const MatchRule r_true(*MatchRule("\t") >> MatchRule("true"));
+ static const MatchRule r_comment(*MatchRule("\t") >> MatchRule("#"));
static const MatchRule r_econf(*MatchRule("\t") >> MatchRule("econf") >> *MatchRule(" ")
>> (MatchRule::eol() || (MatchRule("||") >> *MatchRule(" ") >> MatchRule("die"))));
static const MatchRule r_emake(*MatchRule("\t") >> MatchRule("emake") >> *MatchRule(" ")
@@ -106,6 +107,8 @@ DefaultsCheck::operator() (const FSEntry & f) const
;
else if (r_true.match(line))
;
+ else if (r_comment.match(line))
+ ;
else
src_compile_changed = true;
}
@@ -133,6 +136,8 @@ DefaultsCheck::operator() (const FSEntry & f) const
;
else if (r_true.match(line))
;
+ else if (r_comment.match(line))
+ ;
else
src_unpack_changed = true;
}