- f = new_ccan_file(m, ccan_dir, talloc_strdup(m, dep));
- if (stat(f->fullname, &st) != 0) {
- score->error = "Depends don't exist";
- score_file_error(score, f, 0, "could not stat");
- } else
- list_add_tail(&m->dep_dirs, &f->list);
+ /* FIXME: get_manifest has a tendency to exit. */
+ if (stat(dir, &st) != 0) {
+ score->error
+ = talloc_asprintf(m,
+ "Could not stat dependency %s: %s",
+ dir, strerror(errno));
+ return false;
+ }
+ subm = get_manifest(m, dir);
+ list_add_tail(&m->deps, &subm->list);
+ return true;