summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPang Yan Han <pangyanhan@gmail.com>2011-03-19 09:09:27 +0100
committerDan McGee <dan@archlinux.org>2011-03-20 17:17:41 +0100
commit58df372be6758cfe00069ac7279cd92e3b61edef (patch)
tree0b005726472f6a1d19c0a3d53d512d226b79bf70 /test
parentf6716ae94a5f299569b35bebb4d0aae23cd9af97 (diff)
downloadpacman-58df372be6758cfe00069ac7279cd92e3b61edef.tar.gz
pacman-58df372be6758cfe00069ac7279cd92e3b61edef.tar.xz
Fix handling of ignored packages
Noted in FS#23342. When the user attempts to install an ignored package and answers no when asked whether to install it, pacman bails out with: "error: target not found: packagename" This is because satisfiers are not found for the package and execution continues to process_group(), where the package is treated as a group (which does not exist). In addition, test ignore006.py is updated with PACMAN_RETCODE=0 since saying no to installing an ignored package should not be considered an error. Signed-off-by: Pang Yan Han <pangyanhan@gmail.com> Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test')
-rw-r--r--test/pacman/tests/ignore006.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pacman/tests/ignore006.py b/test/pacman/tests/ignore006.py
index d80ff81f..4c1c1cac 100644
--- a/test/pacman/tests/ignore006.py
+++ b/test/pacman/tests/ignore006.py
@@ -6,5 +6,5 @@ self.addpkg2db("sync", pkg)
self.option["IgnorePkg"] = ["package1"]
self.args = "--ask=1 -S %s" % pkg.name
-self.addrule("PACMAN_RETCODE=1")
+self.addrule("PACMAN_RETCODE=0")
self.addrule("!PKG_EXIST=package1")