summaryrefslogtreecommitdiff
path: root/test/pacman/tests/skip-remove-with-glob-chars.py
blob: 039e1504f90367655a81f68f749b287b053ec962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
self.description = "transferred file with glob characters that match a removed file"

lp = pmpkg("foo")
lp.files = ["foo/b*r", "foo/bar"]
self.addpkg2db("local", lp)

sp1 = pmpkg("foo", "1.0-2")
self.addpkg(sp1)

sp2 = pmpkg("bar", "1.0-2")
sp2.files = ["foo/b*r"]
self.addpkg(sp2)

self.args = "-U %s %s" % (sp1.filename(), sp2.filename())

self.addrule("PKG_VERSION=foo|1.0-2")
self.addrule("PKG_VERSION=bar|1.0-2")
self.addrule("FILE_EXIST=foo/b*r")
self.addrule("!FILE_EXIST=foo/bar")