Function handle_package_base

Source
pub fn handle_package_base(
    name: Name,
    raw: HashMap<Keyword, Value>,
) -> Result<PackageBase, BridgeError>
Expand description

Convert the raw keyword map from the BridgeOutput into a well-formed and typed PackageBase.

Handles parsing and type conversions of all raw input into their respective alpm-types.

ยงErrors

Returns an error if:

  • values cannot be parsed,
  • or unexpected keywords are encountered.