multilib devel should match only suffixes of provides
Otherwise bullet-devel-doc would be considered a multilib package by this method. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
5c1d04eb00
commit
ba57e6ee60
@ -55,9 +55,9 @@ class Multilib(object):
|
||||
for prov in pkg.provides:
|
||||
# TODO: split reldep to name/flag/value
|
||||
prov = str(prov).split(" ")[0]
|
||||
if "-devel" in prov:
|
||||
if prov.endswith("-devel"):
|
||||
return True
|
||||
if "-static" in prov:
|
||||
if prov.endswith("-static"):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user