mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-11 13:59:02 -05:00
bf46e04614
Instead, go the same route we have always taken with version-release in libalpm and treat it all as one piece of information. Makepkg is the only script that knows about epoch as a distinct value; from there on out we will parse out the components as necessary. This makes the code a lot simpler as far as epoch handling goes. The downside here is that we are tossing some compatibility to the wind; packages using force will have to be rebuilt with an incremented epoch to keep their special status. Signed-off-by: Dan McGee <dan@archlinux.org>
13 lines
285 B
Python
13 lines
285 B
Python
self.description = "usbutils case study: force in new package"
|
|
|
|
sp = pmpkg("usbutils", "1:001-1")
|
|
self.addpkg2db("sync", sp)
|
|
|
|
lp = pmpkg("usbutils", "0.91-4")
|
|
self.addpkg2db("local", lp)
|
|
|
|
self.args = "-Su"
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
self.addrule("PKG_VERSION=usbutils|1:001-1")
|