pactest: make OPTDEPEND rule look at non-description only
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
9e1a20022d
commit
d521f30f07
1 changed files with 5 additions and 2 deletions
|
@ -87,8 +87,11 @@ class pmrule(object):
|
|||
if not value in newpkg.depends:
|
||||
success = 0
|
||||
elif case == "OPTDEPENDS":
|
||||
if not value in newpkg.optdepends:
|
||||
success = 0
|
||||
success = 0
|
||||
for optdep in newpkg.optdepends:
|
||||
if value == optdep.split(':', 1)[0]:
|
||||
success = 1
|
||||
break
|
||||
elif case == "REASON":
|
||||
if newpkg.reason != int(value):
|
||||
success = 0
|
||||
|
|
Loading…
Add table
Reference in a new issue