1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-14 05:15:11 -05:00
pacman/pactest/tests/reason001.py

17 lines
370 B
Python
Raw Normal View History

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