diff options
author | Jeff Mickey <jeff@archlinux.org> | 2007-11-02 23:26:31 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-11-04 16:48:24 +0100 |
commit | bcb5465b21f6cafbd044d9aa3b6418dbac909638 (patch) | |
tree | c0914beeefa752077d8775a9a77b755a9a9c6e88 /pactest/pmdb.py | |
parent | ccdf29ffa8436d3cd5409b0d02287207716cf397 (diff) | |
download | pacman-bcb5465b21f6cafbd044d9aa3b6418dbac909638.tar.gz pacman-bcb5465b21f6cafbd044d9aa3b6418dbac909638.tar.xz |
Added optdepends support to pactest
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/pmdb.py')
-rwxr-xr-x | pactest/pmdb.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pactest/pmdb.py b/pactest/pmdb.py index 5d5104fb..ebde324f 100755 --- a/pactest/pmdb.py +++ b/pactest/pmdb.py @@ -187,6 +187,8 @@ class pmdb: line = line.strip("\n") if line == "%DEPENDS%": pkg.depends = _getsection(fd) + elif line == "%OPTDEPENDS%": + pkg.optdepends = _getsection(fd) elif line == "%REQUIREDBY%": pkg.requiredby = _getsection(fd) elif line == "%CONFLICTS%": @@ -291,6 +293,8 @@ class pmdb: data = [] if pkg.depends: data.append(_mksection("DEPENDS", pkg.depends)) + if pkg.optdepends: + data.append(_mksection("OPTDEPENDS", pkg.optdepends)) if self.treename == "local": if pkg.requiredby: data.append(_mksection("REQUIREDBY", pkg.requiredby)) |