[pacman-dev] difficult symlink puzzle, part 2.

Nagy Gabor ngaba at bibl.u-szeged.hu
Thu Aug 2 18:15:56 EDT 2007


Hi!

If I didn't misunderstood conflict.c then fileconflict check fails in the 
following case (pacman -A pkg1 pkg2):
pkg1 contains: /dir1/file
pkg2 contains: /dir2/file,
if /dir1 and /dir2 exists on filesystem, and /dir2 is a symlink pointing 
to /dir1.
Much more difficult problem (and fortunately much rarer), if pkg2 creates 
the /dir2 symlink, so it didn't exist before the transaction.
Any tests/feedbacks appreciated...
How is this handled in other package managers?

Bye, ngaba

PS: a possible semi-solution: pacman shouldn't stop/overwrite in case of 
these "hidden" fileconflict errors, it extract /dir2/file as 
/dir2/file.pkg2.pacnew and do something at the end of the transaction. 
(Speed is a big limiting factor here.)





More information about the pacman-dev mailing list