mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 16:28:50 -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>
11 lines
208 B
Python
11 lines
208 B
Python
self.description = "-S provision"
|
|
|
|
sp = pmpkg("pkg1")
|
|
sp.provides = ["provision=1.0-1"]
|
|
self.addpkg2db("sync", sp)
|
|
|
|
self.args = "-S provision"
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
self.addrule("PKG_EXIST=pkg1")
|