1 self
.description
= "-U syncdeps test"
3 p1
= pmpkg("pkg1", "1.0-2")
4 p1
.files
= ["bin/pkg1"]
6 p2
= pmpkg("pkg2", "1.0-2")
9 p3
= pmpkg("pkg3", "1.0-2")
10 p3
.depends
= ["unres"]
16 sp
.files
= ["bin/dep"]
17 self
.addpkg2db("sync", sp
)
19 self
.args
= "-U %s --ask=32" % " ".join([p
.filename() for p
in p1
, p2
, p3
])
21 self
.addrule("PACMAN_RETCODE=0")
23 self
.addrule("PKG_EXIST=%s" % p
.name
)
25 self
.addrule("FILE_EXIST=%s" % f
)
26 self
.addrule("PKG_VERSION=pkg1|1.0-2")
27 self
.addrule("PKG_VERSION=pkg2|1.0-2")
28 self
.addrule("!PKG_EXIST=pkg3")