mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-11 20:05:07 -05:00
948f135a73
This applies to a case such as when /lib is a symlink to /usr/lib. If a package is installed which contains /lib/libfoo.so, pacman will complain if this package is then "fixed" to contain /usr/lib/libfoo.so. Since these have the same effective path and it exists within the same package, ignore the conflict. Fixes FS#30681. Signed-off-by: Allan McRae <allan@archlinux.org>
21 lines
503 B
Python
21 lines
503 B
Python
self.description = "file->file path change with same effective path (/lib as symlink)"
|
|
|
|
lp1 = pmpkg("filesystem", "1.0-1")
|
|
lp1.files = ["usr/",
|
|
"usr/lib/",
|
|
"lib -> usr/lib/"]
|
|
self.addpkg2db("local", lp1)
|
|
|
|
lp2 = pmpkg("pkg1", "1.0-1")
|
|
lp2.files = ["lib/libfoo.so"]
|
|
self.addpkg2db("local", lp2)
|
|
|
|
sp1 = pmpkg("pkg1", "1.0-2")
|
|
sp1.files = ["usr/lib/libfoo.so"]
|
|
self.addpkg2db("sync", sp1)
|
|
|
|
self.args = "-Su"
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
self.addrule("PKG_VERSION=pkg1|1.0-2")
|