summaryrefslogtreecommitdiff
path: root/pactest/pmrule.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-02-28 04:00:21 +0000
committerDan McGee <dan@archlinux.org>2007-02-28 04:00:21 +0000
commitbd7eb9475cdf3bd6dff62e4a38243cac18ba0c8e (patch)
tree1b59860a7803d2b2511d50f9f45979f9cd535867 /pactest/pmrule.py
parent820fae9d75be7527964d441164f0bce6eaaf5183 (diff)
downloadpacman-bd7eb9475cdf3bd6dff62e4a38243cac18ba0c8e.tar.xz
* Added another test as suggested by Nagy on the ML- a package both provides
for and is a dependency of another package. (upgrade057) * Removed man2html stuff from doc/Makefile.am. * Patch: improved depends checking in _alpm_checkdeps Nagy Gabor <ngaba@petra.hos.u-szeged.hu> * Slight revisions to pmrule.py to allow for a PKG_PROVIDES test. * Very quick updates to the pactest README. * Added rules to some of the newer upgrade tests. Note: upgrade055 now fails due to requiredby entries not being written packages that are dependencies in a provides role.
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 78811957..33a29f0e 100755
--- a/pactest/pmrule.py
+++ b/pactest/pmrule.py
@@ -76,6 +76,9 @@ class pmrule:
elif case == "GROUPS":
if not value in newpkg.groups:
success = 0
+ elif case == "PROVIDES":
+ if not value in newpkg.provides:
+ success = 0
elif case == "DEPENDS":
if not value in newpkg.depends:
success = 0