1 self
.description
= "Try to upgrade two packages which would break deps"
3 lp1
= pmpkg("pkg1", "1.0-1")
4 lp1
.depends
= ["imaginary"]
5 self
.addpkg2db("local", lp1
)
7 lp2
= pmpkg("pkg2", "1.0-1")
8 lp2
.provides
= ["imaginary"]
9 self
.addpkg2db("local", lp2
)
11 p1
= pmpkg("pkg1", "1.0-2")
12 p1
.depends
= ["imaginary"]
15 p2
= pmpkg("pkg2", "1.0-2")
18 self
.args
= "-U %s" % " ".join([p
.filename() for p
in p1
, p2
])
20 self
.addrule("PACMAN_RETCODE=1")
21 self
.addrule("PKG_VERSION=pkg1|1.0-1")
22 self
.addrule("PKG_VERSION=pkg2|1.0-1")