Fix failure to find_and_resolve_all_cpls() in some cases.
authorCarl Hetherington <cth@carlh.net>
Tue, 4 Jan 2022 20:54:24 +0000 (20:54 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 20 Apr 2022 18:06:55 +0000 (20:06 +0200)
It seems to me that we need to ignore as-yet-unresolved assets
otherwise if we see them in the wrong order we'll throw an exception.

src/search.cc

index dc0f92a0e102412898ab4e077069efe423e6561f..dd02a2e0c96dc28c5fc1acf23fa5405086c5cb70 100644 (file)
@@ -78,7 +78,7 @@ dcp::find_and_resolve_cpls (vector<boost::filesystem::path> const& directories,
        for (auto i: dcps) {
                for (auto j: dcps) {
                        if (i != j) {
-                               i->resolve_refs(j->assets());
+                               i->resolve_refs(j->assets(true));
                        }
                }
        }