From 45f90de0eb9c33eee0deb63bae9aabe5988b8733 Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Sun, 19 Jul 2009 16:54:12 +0200 Subject: Fix klibc conflict case. A package can now replace symdir->dir by dir without fileconflicts. Signed-off-by: Xavier Chantry Signed-off-by: Dan McGee --- pactest/tests/fileconflict007.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pactest/tests/fileconflict007.py (limited to 'pactest/tests') diff --git a/pactest/tests/fileconflict007.py b/pactest/tests/fileconflict007.py new file mode 100644 index 00000000..7e6d85ef --- /dev/null +++ b/pactest/tests/fileconflict007.py @@ -0,0 +1,17 @@ +self.description = "Fileconflict with symlinks (klibc case)" + +lp = pmpkg("pkg") +lp.files = ["dir/realdir/", + "dir/symdir -> realdir", + "dir/realdir/file"] +self.addpkg2db("local", lp) + +p = pmpkg("pkg", "1.0-2") +p.files = ["dir/symdir/file"] +self.addpkg(p) + +self.args = "-U %s" % p.filename() + +self.addrule("PACMAN_RETCODE=0") +self.addrule("PKG_EXIST=pkg") +self.addrule("PKG_VERSION=pkg|1.0-2") -- cgit v1.2.3-24-g4f1b