When only asked for the .bupm via metdata_file(), don't also parse the
.bupm and create all the metadata objects for the dir. Aside from
being potentially wasteful, that may also make it impossible to
retrieve a broken .bupm via "cat-file --bupm" (for analysis).
Thanks to Anton Eliasson <devel@antoneliasson.se> for helping find the
problem and test the fix.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
def metadata_file(self):
"""Return this Dir's .bupm File, if any."""
- self._populate_metadata()
+ if not self._subs:
+ self._mksubs()
return self._bupm