From d677cd6c469508a6ef73a5ffb14059dcc3f1e1fb Mon Sep 17 00:00:00 2001 From: Miroslav Suchý Date: Jul 18 2022 14:45:17 +0000 Subject: 2108165 - upper case AND/OR in resulting SPDX formula --- diff --git a/license-fedora2spdx.py b/license-fedora2spdx.py index 307284b..fa16935 100755 --- a/license-fedora2spdx.py +++ b/license-fedora2spdx.py @@ -25,8 +25,10 @@ class T(Transformer): if COUNT[token] > 1: print("Warning: more options how to interpret {}. Possible options: {}".format( token, VARIATIONS[token])) - elif token in ["and", "or", "(", ")"]: + elif token in ["(", ")"]: pass + elif token in ["and", "or"]: + token.value = token.upper() else: print("Warning: we do not have SPDX identifier for {}".format(token)) return token.value