alpm_srcinfo::source_info::package

Macro clearable_arch_vec

Source
macro_rules! clearable_arch_vec {
    (
        $line:ident,
        $errors:ident,
        $lint_architectures:ident,
        $architecture_properties:ident,
        $architecture:ident,
        $field_name:ident,
    ) => { ... };
}
Expand description

Handles all potentially architecture specific, clearable entries in the Package::from_parsed function.

If no architecture is encountered, it simply clears the value on the Package 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 or Package::architectures if overridden.