diff options
author | Dan McGee <dan@archlinux.org> | 2011-01-04 01:32:43 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-10 17:51:35 +0100 |
commit | a9cbd15260b396c38b7d5ffe5669994e65f9a86f (patch) | |
tree | 44e0bb36dff83d35e63bdc71899188b15c56b008 /test/pacman/pmpkg.py | |
parent | 3e1bdfa93c0c0c1a966ba24f8013754a8a87f0ec (diff) | |
download | pacman-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/pmpkg.py')
-rwxr-xr-x | test/pacman/pmpkg.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/pacman/pmpkg.py b/test/pacman/pmpkg.py index e0f3baab..3aabea49 100755 --- a/test/pacman/pmpkg.py +++ b/test/pacman/pmpkg.py @@ -132,6 +132,10 @@ class pmpkg: data.append("builddate = %s" % self.builddate) data.append("packager = %s" % self.packager) data.append("size = %s" % self.size) + if self.force: + data.append("force = true") + if self.epoch: + data.append("epoch = %d" % self.epoch) if self.arch: data.append("arch = %s" % self.arch) for i in self.license: |