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:
Lubomír Sedlář 2017-01-30 14:27:32 +01:00
parent 5c1d04eb00
commit ba57e6ee60
1 changed files with 2 additions and 2 deletions

View File

@ -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