Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/pactest/pmrule.py
diff options
context:
space:
mode:
authorJeff Mickey <jeff@archlinux.org>2007-11-02 18:26:31 -0400
committerDan McGee <dan@archlinux.org>2007-11-04 09:48:24 -0600
commitbcb5465b21f6cafbd044d9aa3b6418dbac909638 (patch)
treec0914beeefa752077d8775a9a77b755a9a9c6e88 /pactest/pmrule.py
parentccdf29ffa8436d3cd5409b0d02287207716cf397 (diff)
Added optdepends support to pactest
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/pmrule.py')
-rwxr-xr-xpactest/pmrule.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pactest/pmrule.py b/pactest/pmrule.py
index d5d0f561..c5682dc1 100755
--- a/pactest/pmrule.py
+++ b/pactest/pmrule.py
@@ -83,6 +83,9 @@ class pmrule:
elif case == "DEPENDS":
if not value in newpkg.depends:
success = 0
+ elif case == "OPTDEPENDS":
+ if not value in newpkg.optdepends:
+ success = 0
elif case == "REQUIREDBY":
if not value in newpkg.requiredby:
success = 0