}
static void check_depends_accurate(struct manifest *m,
- bool keep,
unsigned int *timeleft, struct score *score)
{
struct list_head *list;
list_for_each(list, f, list) {
unsigned int i;
char **lines = get_ccan_file_lines(f);
+ struct line_info *li = get_ccan_line_info(f);
for (i = 0; lines[i]; i++) {
char *mod;
"^[ \t]*#[ \t]*include[ \t]*[<\"]"
"ccan/+([^/]+)/", &mod))
continue;
+
if (has_dep(m, mod))
continue;
- score_file_error(score, f, i+1,
- "%s not listed in _info",
- mod);
+
+ /* FIXME: we can't be sure about
+ * conditional includes, so don't
+ * complain. */
+ if (!li[i].cond) {
+ score_file_error(score, f, i+1,
+ "%s not listed in _info",
+ mod);
+ }
}
}
}
if (!score->error) {
- score->pass = true;
score->score = score->total;
+ score->pass = true;
}
}