pactest: avoid upgrade conflict with unchanged effective path
Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
41dae68952
commit
70d8c2150e
1 changed files with 22 additions and 0 deletions
22
test/pacman/tests/fileconflict013.py
Normal file
22
test/pacman/tests/fileconflict013.py
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
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")
|
||||||
|
|
||||||
|
self.expectfailure = True
|
Loading…
Add table
Reference in a new issue