mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
6c00ca8f23
Rather than say we can't find the target after saying "No, I guess I don't want to install this", we should make sure the ignored status gets passed all the way through. This fixes FS#19866. Pactest is also included that failed before due to the fact that we normally treat an unfound package as a reason to exit with a non-zero status. Signed-off-by: Dan McGee <dan@archlinux.org>
11 lines
267 B
Python
11 lines
267 B
Python
self.description = "Sync with target in ignore list and say no"
|
|
|
|
pkg = pmpkg("package1")
|
|
self.addpkg2db("sync", pkg)
|
|
|
|
self.option["IgnorePkg"] = ["package1"]
|
|
self.args = "--ask=1 -S %s" % pkg.name
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
self.addrule("!PKG_EXIST=package1")
|