From d521f30f071e2bd2c39c05f39df34be867dfe572 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 13 Mar 2012 06:33:56 -0500 Subject: pactest: make OPTDEPEND rule look at non-description only Signed-off-by: Dan McGee --- test/pacman/pmrule.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/pacman/pmrule.py b/test/pacman/pmrule.py index 107a4083..778b6aac 100644 --- a/test/pacman/pmrule.py +++ b/test/pacman/pmrule.py @@ -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 -- cgit v1.2.3-24-g4f1b