mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-24 08:48:50 -05:00
5699f2c94c
All conditions that this particular rule tested are better served by using a more specific rule, whether that be checking a package version or whether files inside the package have changed or still exist. Signed-off-by: Dan McGee <dan@archlinux.org>
16 lines
353 B
Python
16 lines
353 B
Python
self.description = "Sysupgrade with same version for local and sync packages"
|
|
|
|
sp = pmpkg("dummy")
|
|
sp.files = ["bin/foo"]
|
|
lp = pmpkg("dummy")
|
|
lp.files = ["bin/foo"]
|
|
|
|
self.addpkg2db("sync", sp)
|
|
self.addpkg2db("local", lp)
|
|
|
|
self.args = "-Su"
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
self.addrule("PKG_VERSION=dummy|1.0-1")
|
|
self.addrule("!FILE_MODIFIED=bin/foo")
|