diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-12-08 22:17:35 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-12-08 22:17:35 +0000 |
| commit | 2e0c94655f51ea9f01afea57f0c5f9d0f8efeb8d (patch) | |
| tree | 2f70c2b76d1c97c786c3b205f19eb983951c8d02 /src/lib/spl.cc | |
| parent | 29436ead35fbb6041fd24115623cad7638693d8e (diff) | |
swaroop: better handling of missing content in SPLs.
Diffstat (limited to 'src/lib/spl.cc')
| -rw-r--r-- | src/lib/spl.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/spl.cc b/src/lib/spl.cc index 74538aa99..2cba229c1 100644 --- a/src/lib/spl.cc +++ b/src/lib/spl.cc @@ -28,24 +28,23 @@ using std::cout; using boost::shared_ptr; -bool +void SPL::read (boost::filesystem::path path, ContentStore* store) { _spl.clear (); + _missing = false; cxml::Document doc ("SPL"); doc.read_file (path); - bool missing = false; BOOST_FOREACH (cxml::ConstNodePtr i, doc.node_children("Entry")) { shared_ptr<Content> c = store->get(i->string_child("Digest")); if (c) { add (SPLEntry(c, i)); } else { - missing = true; + _missing = true; } } _name = path.filename().string(); - return missing; } void |
