1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-10-31 23:55:04 -04:00
pacman/pactest/tests/reason001.py
Nagy Gabor 112caad838 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 <ngaba@bibl.u-szeged.hu>
Signed-off-by: Dan McGee <dan@archlinux.org>
2008-01-11 23:19:08 -06:00

17 lines
370 B
Python

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")