diff options
Diffstat (limited to 'test/pacman/tests/replace101.py')
-rw-r--r-- | test/pacman/tests/replace101.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/pacman/tests/replace101.py b/test/pacman/tests/replace101.py new file mode 100644 index 00000000..00d2b6b3 --- /dev/null +++ b/test/pacman/tests/replace101.py @@ -0,0 +1,18 @@ +self.description = "Sysupgrade with a versioned replacement, original disappears" + +sp1 = pmpkg("python2-yaml", "5-1") +sp1.replaces = ["python-yaml<5"] +sp1.conflicts = ["python-yaml<5"] +sp1.files = ["lib/python2/file"] +self.addpkg2db("sync", sp1) + +lp1 = pmpkg("python-yaml", "4-1") +lp1.files = ["lib/python2/file"] +self.addpkg2db("local", lp1) + +self.args = "-Su" + +self.addrule("PACMAN_RETCODE=0") +self.addrule("!PKG_EXIST=python-yaml") +self.addrule("PKG_VERSION=python2-yaml|5-1") +self.addrule("FILE_EXIST=lib/python2/file") |