alpm_srcinfo::source_info::package_base

Macro package_base_arch_prop

Source
macro_rules! package_base_arch_prop {
    (
        $line:ident,
        $errors:ident,
        $architectures:ident,
        $architecture_properties:ident,
        $arch_property:ident,
        $field_name:ident,
    ) => { ... };
}
Expand description

Handles all potentially architecture specific Vector entries in the PackageBase::from_parsed function.

If no architecture is encountered, it simply adds the value on the PackageBase itself. Otherwise, it’s added to the respective PackageBase::architecture_properties.

Furthermore, adds linter warnings if an architecture is encountered that doesn’t exist in the PackageBase::architectures.