mirror of
https://abf.rosa.ru/djam/urpm-tools.git
synced 2025-02-23 09:22:47 +00:00
Do not fail on req/prov strings ending with '[=='
This commit is contained in:
parent
3debe8129f
commit
b9911a0845
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue