From 8aa7ed5a7e82eaa40c2ee68271226787710f8f08 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 8 Oct 2010 09:53:10 -0500 Subject: 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 --- test/pacman/util.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/pacman/util.py') 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") -- cgit v1.2.3