blob: 5cec98ada82ac8e8e8d1a5c86c5277a5ae0f51af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
self.description = "Don't update (reinstall) a replaced package"
lp = pmpkg("old", "1-1")
self.addpkg2db("local", lp)
p1 = pmpkg("new")
p1.provides = ["old"]
p1.replaces = ["old"]
self.addpkg2db("sync1", p1)
p2 = pmpkg("old", "1-2")
self.addpkg2db("sync2", p2)
self.args = "-Su"
self.addrule("PACMAN_RETCODE=0")
self.addrule("!PKG_EXIST=old")
self.addrule("PKG_EXIST=new")
|