Function get_build_info

Source
fn get_build_info(
    input_dir: &InputDir,
    mtree: &Mtree,
) -> Result<BuildInfo, Error>
Expand description

Returns a BuildInfo from a BUILDINFO file in an input directory.

ยงErrors

Returns an error if

  • the file does not exist,
  • the file contents cannot be read to a buffer,
  • the hash digest of the file does not match that initially recorded in mtree,
  • or the file contents do not represent valid BuildInfo data.