summaryrefslogtreecommitdiff
path: root/pactest/pmpkg.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/pmpkg.py
parentccdf29ffa8436d3cd5409b0d02287207716cf397 (diff)
downloadpacman-bcb5465b21f6cafbd044d9aa3b6418dbac909638.tar.xz
Added optdepends support to pactest
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/pmpkg.py')
-rwxr-xr-xpactest/pmpkg.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pactest/pmpkg.py b/pactest/pmpkg.py
index c6859e8f..410423da 100755
--- a/pactest/pmpkg.py
+++ b/pactest/pmpkg.py
@@ -53,6 +53,7 @@ class pmpkg:
self.force = 0 # sync only (will be moved to depends)
# depends
self.depends = []
+ self.optdepends = []
self.requiredby = [] # local only
self.conflicts = []
self.provides = []
@@ -146,6 +147,8 @@ class pmpkg:
data.append("group = %s" % i)
for i in self.depends:
data.append("depend = %s" % i)
+ for i in self.optdepends:
+ data.append("optdepend = %s" % i)
for i in self.conflicts:
data.append("conflict = %s" % i)
for i in self.provides: