summaryrefslogtreecommitdiff
path: root/test/pacman/tests/sync-sysupgrade-print-replaced-packages.py
blob: 1325c6c3579c99853f5ffcfcafc0ba7a1c5eece3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
self.description = "Print replacements when using -Sup"


lp = pmpkg("a", "1-1")
self.addpkg2db("local", lp)

sp = pmpkg("b", "2-2")
sp.replaces = ["a"]
self.addpkg2db("sync", sp)

self.args = "-Sup"

self.addrule("PACMAN_RETCODE=0")
self.addrule("PACMAN_OUTPUT=%s-%s" % (sp.name, sp.version))