summaryrefslogtreecommitdiff
path: root/pactest
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2009-07-19 16:54:12 +0200
committerDan McGee <dan@archlinux.org>2009-07-20 10:13:42 -0500
commit45f90de0eb9c33eee0deb63bae9aabe5988b8733 (patch)
tree143ca05d6860abb0c1a38be5ca882495f171da49 /pactest
parentbfd6817112b34b552e9139bdc582d048bcba38b9 (diff)
Fix klibc conflict case.
A package can now replace symdir->dir by dir without fileconflicts. Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest')
-rw-r--r--pactest/tests/fileconflict007.py17
1 files changed, 17 insertions, 0 deletions
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")