fn get_package_info(
input_dir: &InputDir,
mtree: &Mtree,
) -> Result<PackageInfo, Error>
Expand description
Returns a PackageInfo
from a PKGINFO 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
PackageInfo
data.