mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-15 22:05:02 -05:00
1d19f0896c
If the user switches from unstable repo to a stable one, it is quite hard to sync its system with the new repo (the user will see many "Local is newer than stable" messages, nothing more). That's why I introduced -Suu, which treats a sync package like an upgrade, iff the package version doesn't match with the local one's. I added a new pactest (sync104.py) to test this, and I updated the documentation of -Su. Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu> [Dan: slight doc reword] Signed-off-by: Dan McGee <dan@archlinux.org>
13 lines
235 B
Python
13 lines
235 B
Python
self.description = "-Suu"
|
|
|
|
sp = pmpkg("dummy", "0.9-1")
|
|
lp = pmpkg("dummy", "1.0-1")
|
|
|
|
self.addpkg2db("sync", sp)
|
|
self.addpkg2db("local", lp)
|
|
|
|
self.args = "-Suu"
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
self.addrule("PKG_VERSION=dummy|0.9-1")
|