diff options
author | Dan McGee <dan@archlinux.org> | 2011-08-09 06:52:52 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-09 22:46:11 +0200 |
commit | 5a6ebec7b27e0ec15c2fe79b394f9f65aecc33cd (patch) | |
tree | 30585f0755c893efe7600848c5e6f2565e0506c4 /test/pacman/tests/replace110.py | |
parent | 96c4b1c3033e4f018ab20af5d35cf9cbd8b31cf4 (diff) | |
download | pacman-5a6ebec7b27e0ec15c2fe79b394f9f65aecc33cd.tar.gz pacman-5a6ebec7b27e0ec15c2fe79b394f9f65aecc33cd.tar.xz |
Add a slightly simpler versioned replace test
It turns out we have a few problems here which are best tackled
independently. The first is simply parsing replacements as dep strings;
the second will be dealing with replaces when the original package name
still exists in the repository.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test/pacman/tests/replace110.py')
-rw-r--r-- | test/pacman/tests/replace110.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/pacman/tests/replace110.py b/test/pacman/tests/replace110.py new file mode 100644 index 00000000..c6e2e5f0 --- /dev/null +++ b/test/pacman/tests/replace110.py @@ -0,0 +1,27 @@ +self.description = "Replace a package with a file in 'backup' (local modified)" +# FS#24543 + +lp = pmpkg("dummy") +lp.files = ["etc/dummy.conf*", "bin/dummy"] +lp.backup = ["etc/dummy.conf"] +self.addpkg2db("local", lp) + +sp = pmpkg("replacement") +sp.replaces = ["dummy"] +sp.files = ["etc/dummy.conf", "bin/dummy*"] +sp.backup = ["etc/dummy.conf"] +self.addpkg2db("sync", sp) + +self.args = "-Su" + +self.addrule("!PKG_EXIST=dummy") +self.addrule("PKG_EXIST=replacement") + +self.addrule("FILE_EXIST=etc/dummy.conf") +self.addrule("!FILE_MODIFIED=etc/dummy.conf") +self.addrule("!FILE_PACNEW=etc/dummy.conf") +self.addrule("!FILE_PACSAVE=etc/dummy.conf") + +self.addrule("FILE_EXIST=bin/dummy") + +self.expectfailure = True |