diff --git a/rpm5utils/synthesis.py b/rpm5utils/synthesis.py index 4639ea0..c053cf1 100644 --- a/rpm5utils/synthesis.py +++ b/rpm5utils/synthesis.py @@ -132,6 +132,8 @@ class NEVR(object): @staticmethod def from_depstring(s, DE_toremove=None): s = s.replace('[*]', '') + # We may have buggy strings ending with "[== " + s = re.sub(r"\[==\s*$", "", s) if DE_toremove: res = NEVR.re_dep_ver.match(s)