mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-24 00:38:51 -05:00
902dfe5900
The main reason for this change is that scripts could not catch the removed targets with -S --noconfirm (the return value was 0). So the effect of a pacman command may have differed from the expected one. Moreover, for my taste the default no answer is better (I wanted to install the specified targets, not a subset of them). I had to change some pactest files as well, because now the default behavior is not to remove unresolvable targets. In fact, the only pactest file that tested this feature was ignore005.py. Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu> Signed-off-by: Dan McGee <dan@archlinux.org>
15 lines
326 B
Python
15 lines
326 B
Python
self.description = "Sync with corrupt database (broken deps)"
|
|
|
|
sp1 = pmpkg("pkg1")
|
|
sp1.depends = ["pkg2=1.1"]
|
|
self.addpkg2db("sync", sp1)
|
|
|
|
sp2 = pmpkg("pkg2", "1.0-1")
|
|
self.addpkg2db("sync", sp2)
|
|
|
|
self.args = "-S %s" % sp1.name
|
|
|
|
self.addrule("PACMAN_RETCODE=1")
|
|
self.addrule("!PKG_EXIST=pkg1")
|
|
self.addrule("!PKG_EXIST=pkg2")
|