-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mit AND (mit OR bsd-new) incorrectly simplifies to mit #49
Comments
Actually I think that So |
My point is that in |
Agreed with @pombredanne |
* Instead of using the simplify() from the boolean.py (as it over simplified the expression and the order cannot be kept), I've implemented a new function, dedup(self, expression), to de-duplicate the license_expression and keep the order of the license key. Signed-off-by: Chin Yeung Li <tli@nexb.com>
Deduplicate license expressions correctly #49 Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Disable Python 3.10 tests on macOS 10.14
From the above output, one can see that
mit AND (mit OR bsd-new)
simplifies down to justmit
. If this were just boolean logical elements, this result would be correct. However, when its a license-expression, we are loosing data (this case, thebsd-new
key).In a perfect world, I would like the result to be simply reduce to
mit OR bsd-new
.The text was updated successfully, but these errors were encountered: