blob: 8e7f1eaa0d3c8400f740ed63c0960ddceda26369 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
self.description = "Upgrade a package with files that match negated NoUpgrade patterns"
lp = pmpkg("foobar")
lp.files = ["foo/bar", "foo/baz"]
self.addpkg2db("local", lp)
p = pmpkg("foobar", "1.0-2")
p.files = ["foo/bar"]
self.addpkg(p)
self.option["NoUpgrade"] = ["foo/*", "!foo/bar", "!foo/baz"]
self.args = "-U %s" % p.filename()
self.addrule("PKG_VERSION=foobar|1.0-2")
self.addrule("!FILE_EXIST=foo/baz")
self.addrule("FILE_MODIFIED=foo/bar")
self.addrule("!FILE_PACNEW=foo/bar")
self.addrule("!FILE_PACSAVE=foo/bar")
|