You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@qduanmu good catch.
There are two different ways we could consider to fix this:
as you suggested we could add rules, with the risk that some of these are are very short and lead to some false positive when found in another context (e.g. not in an RPM metadata)
alternatively, we could add a new type of license detection "matchers" that would be specific to each package type and could be as simple as a mapping for RPMs, mapping each known license declarations used in RPMs to an actual license expression.. (this could be smart and be distro-specific too)
ASL 2.0 1.1 and 1.0 ae short references that should be detected.
Reported-by: Qingmin Duanmu <[email protected]>
Signed-off-by: Philippe Ombredanne <[email protected]>
Description
Declared license in rpm spec is
License: ASL 2.0
, and scancode failed to get the correct license expression.After adding a license rule with 'ASL 2.0' as rule text for 'apache-2.0', reindexed icenses, the license expression could be recognized correctly.
Same issue for 'ASL 1.1', 'ASL 1.0'.
System configuration
For bug reports, it really helps us to know:
The text was updated successfully, but these errors were encountered: