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>
This commit is contained in:
parent
3e133524a5
commit
112caad838
1 changed files with 16 additions and 0 deletions
16
pactest/tests/reason001.py
Normal file
16
pactest/tests/reason001.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
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")
|
Loading…
Add table
Reference in a new issue