[pacman-dev] db_find_conflicts(): bug or feature?
hi in db_find_conflicts(), currently we do not allow symlinks to become dirs and vica versa. for example: build() { Fmkdir /usr/lib/ffox Fln ffox /usr/lib/ffox-$pkgver } can't be upgraded to: build() { Fmkdir /usr/lib/ffox-$pkgver Fln ffox-$pkgver /usr/lib/ffox } which is not normal. i've tried to fix this issue, but the fix is not so trivial. ok, a trivial workaround is to remove the following lines: if(!S_ISLNK(buf.st_mode) && ((isdir && !S_ISDIR(buf.st_mode)) || (!isdir && S_ISDIR(buf.st_mode)))) { /* if the package target is a directory, and the filesystem target * is not (or vice versa) then it's a conflict */ ok = 0; goto donecheck; } but of course this is not a sollution, this will ignore real conflicts, too btw this is a bug in pacman2, too any idea? Aurelien, is this a known problem? udv / greetings, VMiklos -- Developer of Frugalware Linux, to make things frugal - http://frugalware.org
On Fri, Feb 03, 2006 at 04:45:18PM +0100, VMiklos <vmiklos@frugalware.org> wrote:
btw this is a bug in pacman2, too
another interesting detail: a symlink is allowed to be replaced by a dir, but a dir is now allowed to be recplaced by a symlink. strange :) udv / greetings, VMiklos -- Developer of Frugalware Linux, to make things frugal - http://frugalware.org
participants (1)
-
VMiklos