Fix parsing of depends with both epoch and description
Not a common case, but one we can and should support and hasn't been noticed up until this point. That pesky colon! Fixes FS#37477. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
7ac017e1e7
commit
5943f92e4c
@ -138,8 +138,8 @@ def full_version(self):
|
||||
|
||||
def create_depend(package, dep_str, deptype='D'):
|
||||
depend = Depend(pkg=package, deptype=deptype)
|
||||
# lop off any description first
|
||||
parts = dep_str.split(':', 1)
|
||||
# lop off any description first, don't get confused by epoch
|
||||
parts = dep_str.split(': ', 1)
|
||||
if len(parts) > 1:
|
||||
depend.description = parts[1].strip()
|
||||
match = DEPEND_RE.match(parts[0].strip())
|
||||
|
Loading…
Reference in New Issue
Block a user