On Wed, Jun 01, 2005 at 10:54:22AM -0300, Carlos Laviola wrote: > 2005/6/1, Agustin Martin <[EMAIL PROTECTED]>: > > On Wed, Jun 01, 2005 at 12:04:21AM -0300, Guilherme Mesquita Gondim > > (semente) wrote: > > > Setting up fp-compiler (2.0.0-2) ... > > > update-alternatives: slave link name /usr/share/man/man1/pc.1.gz > > > duplicated > > > dpkg: error processing fp-compiler (--configure): > > > > Reproduced, > > > > Carlos and Kenshi, the problem seems to be that the alternative is not > > removed from the prerm, so the postinst tries to set it again over an > > already existent alternative. > > Yes, that's true. I have prepared a new package based on your patch > that also removes the link on prerm if it's not an upgrade.
Hi, Carlos Putting the removal code only in prerm without extra checkings should suffice. I was confused and did in preinst, but prerm is the right place after policy manual, since it is run both in upgrades and in removals. I have been trying to check if the upgrade from the buggy package to a fixed one works with only the prerm change, or needs some ad-hoc stuff, but funnily I cannot reproduce the problem today. Reinstalling fp-compiler 2.0.0-2 over and over, which should have triggered this problem, is working well. Surprise... Cheers, -- Agustin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]