From 112caad838762383708d692f6479fe112b35f4fc Mon Sep 17 00:00:00 2001 From: Nagy Gabor Date: Fri, 11 Jan 2008 21:51:50 +0100 Subject: New reason001.py pactest This pactest demonstrates that we should copy the reason between the to-be-replaced and replaced packages Signed-off-by: Nagy Gabor Signed-off-by: Dan McGee --- pactest/tests/reason001.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pactest/tests/reason001.py diff --git a/pactest/tests/reason001.py b/pactest/tests/reason001.py new file mode 100644 index 00000000..40433f5e --- /dev/null +++ b/pactest/tests/reason001.py @@ -0,0 +1,16 @@ +self.description = "Copy reason (to-be-replaced -> replacement)" + +sp = pmpkg("libfoo-ng") +sp.replaces = [ "libfoo" ] +self.addpkg2db("sync", sp) + +lp = pmpkg("libfoo") +lp.reason = 1 +self.addpkg2db("local", lp) + +self.args = "-Su" + +self.addrule("PACMAN_RETCODE=0") +self.addrule("!PKG_EXIST=libfoo") +self.addrule("PKG_EXIST=libfoo-ng") +self.addrule("PKG_REASON=libfoo-ng|1") -- cgit v1.2.3-70-g09d2