[pacman-dev] 2 new failing pactests (difficult symlink puzzle, part 2.)

Nagy Gabor ngaba at bibl.u-szeged.hu
Tue Oct 9 06:00:42 EDT 2007


Hi!
The first problem can be fixed using realpath(). However, the second (rare, but
very difficult to fix) pactest shows that this is not enough :-(
fileconflict001.py:
===================
self.description = "Fileconflict with symlinks"

lp = pmpkg("dummy")
lp.files = ["dir/realdir/",
	    "dir/symdir -> realdir" ]
self.addpkg2db("local", lp)

p1 = pmpkg("pkg1")
p1.files = ["dir/realdir/file"]
self.addpkg(p1)

p2 = pmpkg("pkg2")
p2.files = ["dir/symdir/file"]
self.addpkg(p2)

self.args = "-A %s" % " ".join([p.filename() for p in p1, p2])

self.addrule("PACMAN_RETCODE=1")
self.addrule("!PKG_EXIST=pkg1")
self.addrule("!PKG_EXIST=pkg2")
-------
fileconflict002.py:
===================
self.description = "Fileconflict with symlinks (2)"

p1 = pmpkg("pkg1")
p1.files = ["dir/realdir/file",
	    "dir/symdir -> realdir"]
self.addpkg(p1)

p2 = pmpkg("pkg2")
p2.files = ["dir/symdir/file"]
self.addpkg(p2)

self.args = "-A %s" % " ".join([p.filename() for p in p1, p2])

self.addrule("PACMAN_RETCODE=1")
self.addrule("!PKG_EXIST=pkg1")
self.addrule("!PKG_EXIST=pkg2")


----------------------------------------------------
SZTE Egyetemi Könyvtár - http://www.bibl.u-szeged.hu
This mail sent through IMP: http://horde.org/imp/





More information about the pacman-dev mailing list