summaryrefslogtreecommitdiffstats
path: root/test/pacman/util.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-10-08 16:53:10 +0200
committerDan McGee <dan@archlinux.org>2010-10-14 06:29:26 +0200
commit8aa7ed5a7e82eaa40c2ee68271226787710f8f08 (patch)
tree854f70ae52b9990905d8b2dd801b5961b23080b8 /test/pacman/util.py
parent6f37ba61ed79876b23d3328185186d9ac0c3332c (diff)
downloadpacman-8aa7ed5a7e82eaa40c2ee68271226787710f8f08.tar.gz
pacman-8aa7ed5a7e82eaa40c2ee68271226787710f8f08.tar.xz
Add epoch support to pactest
This adds epoch support to pactest, while still producing packages and database entries the same way makepkg and repo-add currently do in a backward compatible fashion (still including the 'force' option). Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test/pacman/util.py')
-rwxr-xr-xtest/pacman/util.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/pacman/util.py b/test/pacman/util.py
index 802f22ec..0044f21b 100755
--- a/test/pacman/util.py
+++ b/test/pacman/util.py
@@ -154,6 +154,10 @@ def mkdescfile(filename, pkg):
data.append("provides = %s" % i)
for i in pkg.backup:
data.append("backup = %s" % i)
+ if pkg.epoch:
+ data.append("epoch = %d" % pkg.epoch)
+ if not pkg.force:
+ data.append("force = 1")
if pkg.force:
data.append("force = 1")