Function get_install_scriptlet

Source
fn get_install_scriptlet(
    input_dir: &InputDir,
    mtree: &Mtree,
) -> Result<Option<PathBuf>, Error>
Expand description

Returns whether an alpm-install-scriptlet exists in an input directory.

ยงErrors

Returns an error if

  • 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 alpm-install-scriptlet data.