summaryrefslogtreecommitdiffstats
path: root/test/pacman/pmrule.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-01-04 01:32:43 +0100
committerDan McGee <dan@archlinux.org>2011-01-10 17:51:35 +0100
commita9cbd15260b396c38b7d5ffe5669994e65f9a86f (patch)
tree44e0bb36dff83d35e63bdc71899188b15c56b008 /test/pacman/pmrule.py
parent3e1bdfa93c0c0c1a966ba24f8013754a8a87f0ec (diff)
downloadpacman-a9cbd15260b396c38b7d5ffe5669994e65f9a86f.tar.gz
pacman-a9cbd15260b396c38b7d5ffe5669994e65f9a86f.tar.xz
pactest: correctly write epoch and force as necessary
We were missing this in a few places; also add the ability to check the outcome via a new rule type. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test/pacman/pmrule.py')
-rwxr-xr-xtest/pacman/pmrule.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/pacman/pmrule.py b/test/pacman/pmrule.py
index 89ae3f49..bea8e4a4 100755
--- a/test/pacman/pmrule.py
+++ b/test/pacman/pmrule.py
@@ -78,6 +78,9 @@ class pmrule:
elif case == "VERSION":
if value != newpkg.version:
success = 0
+ elif case == "EPOCH":
+ if int(value) != newpkg.epoch:
+ success = 0
elif case == "DESC":
if value != newpkg.desc:
success = 0