From 5b27e78ba015a48baf2d3c8687fdf3084781f9c9 Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Wed, 19 Aug 2009 17:58:03 +0200 Subject: Check package arch before installing This implements FS#15622 Signed-off-by: Xavier Chantry Signed-off-by: Dan McGee --- pactest/tests/upgrade080.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pactest/tests/upgrade080.py (limited to 'pactest/tests/upgrade080.py') diff --git a/pactest/tests/upgrade080.py b/pactest/tests/upgrade080.py new file mode 100644 index 00000000..9ddbd708 --- /dev/null +++ b/pactest/tests/upgrade080.py @@ -0,0 +1,16 @@ +self.description = "Install a package (correct architecture)" + +p = pmpkg("dummy") +p.files = ["bin/dummy", + "usr/man/man1/dummy.1"] +p.arch = 'testarch' +self.addpkg(p) + +self.option["Architecture"] = ['testarch'] + +self.args = "-U %s" % p.filename() + +self.addrule("PACMAN_RETCODE=0") +self.addrule("PKG_EXIST=dummy") +for f in p.files: + self.addrule("FILE_EXIST=%s" % f) -- cgit v1.2.3-70-g09d2