libappstream::functions

Function license_is_metadata_license

source
pub fn license_is_metadata_license(license: &str) -> bool
Expand description

Check if the metadata license is suitable for mixing with other metadata and redistributing the bundled result (this means we prefer permissive licenses here, to not require people shipping catalog metadata to perform a full license review).

This method checks against a hardcoded list of permissive licenses commonly used to license metadata under.

§license

The SPDX license string to test.

§Returns

true if the license contains only permissive licenses suitable as metadata license.