From 1d57a3e801421f6ddd43522f1a0d1ebaacf7aa92 Mon Sep 17 00:00:00 2001 From: Nagy Gabor Date: Wed, 14 Nov 2007 19:56:41 +0100 Subject: new add043.py pactest Currently alpm_depcmp uses pkg->version as a version number for provisions, which is odd. The failure of the pactest demonstrates this. Signed-off-by: Nagy Gabor Signed-off-by: Dan McGee --- pactest/tests/add043.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pactest/tests/add043.py (limited to 'pactest') diff --git a/pactest/tests/add043.py b/pactest/tests/add043.py new file mode 100644 index 00000000..18f732ee --- /dev/null +++ b/pactest/tests/add043.py @@ -0,0 +1,15 @@ +self.description = "provision>=1.0-2 dependency" + +p = pmpkg("pkg1", "1.0-2") +p.depends = ["provision>=1.0-2"] +self.addpkg(p) + +lp = pmpkg("pkg2", "1.0-2") +lp.provides = ["provision"] +self.addpkg2db("local", lp) + +self.args = "-A %s" % p.filename() + +self.addrule("PACMAN_RETCODE=1") +self.addrule("!PKG_EXIST=pkg1") +self.addrule("PKG_EXIST=pkg2") -- cgit v1.2.3-70-g09d2