license_is_free_license


Description:


[ Version ( since = "0.12.10" ) ]
public bool license_is_free_license (string license)

Check if the given license is for free-as-in-freedom software.

A free software license is either approved by the Free Software Foundation or the Open Source Initiative.

This function does *not* yet handle complex license expressions with AND and OR. If the expression contains any of these, it will still simply check if all mentioned licenses are Free licenses. Currently, any license exception recognized by SPDX is assumed to not impact the free-ness status of a software component.

Please note that this function does not give any legal advice. Please read the license texts to learn more about the individual licenses and their conditions.

Parameters:

license

The SPDX license string to test.

Returns:

true if the license string contains only free-as-in-freedom licenses.


Namespace: AppStream
Package: appstream