mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-10 11:35:00 -05:00
0c5b68877b
Change the 'provname provver' format to 'provname=provver'. In .PKGINFO, the provisions are copied from the PKGBUILD without quotes. So the provision version was actually handled as a different provision... See FS#9171. Dan: Unfortunately we have to change our original specification for versioned provisions with this patch, but it ends up being the simpler and cleaner solution in the long run, and if there is any time to change it the time is now before many packages have been built. Keeping the ' ' based format would have required us to do special parsing in repo-add, as well as being susceptible to users not using quotes in their provides array. Hopefully this will resolve the issues we had with our initial plan. Sorry for the confusion. Acked-by: Nagy Gabor <ngaba@bibl.u-szeged.hu> Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
16 lines
358 B
Python
16 lines
358 B
Python
self.description = "provision>=1.0-2 dependency (3)"
|
|
|
|
p = pmpkg("pkg1", "1.0-2")
|
|
p.depends = ["provision>=1.0-2"]
|
|
self.addpkg2db("sync", p)
|
|
|
|
lp = pmpkg("pkg2", "1.0-2")
|
|
lp.provides = ["provision=1.0-1"]
|
|
self.addpkg2db("local", lp)
|
|
|
|
self.args = "-S %s" % p.name
|
|
|
|
self.addrule("PACMAN_RETCODE=1")
|
|
self.addrule("!PKG_EXIST=pkg1")
|
|
self.addrule("PKG_EXIST=pkg2")
|