summaryrefslogtreecommitdiff
path: root/test/pacman/tests/upgrade077.py
blob: c1d7a54c08855496b3bf3d5cd940d3dad9f897a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
self.description = "Install a package with multiple missing dependencies"

p = pmpkg("dummy")
p.files = ["bin/dummy",
           "usr/man/man1/dummy.1"]
p.depends = ["dep1", "dep2", "dep3"]
self.addpkg(p)

p2 = pmpkg("dep2")
self.addpkg(p2)

self.args = "-U %s %s" % (p.filename(), p2.filename())

self.addrule("PACMAN_RETCODE=1")
self.addrule("!PKG_EXIST=dummy")
for f in p.files:
        self.addrule("!FILE_EXIST=%s" % f)