[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GHC 6.10.1 uploaded to experimental



Hi,

Am Dienstag, den 03.02.2009, 17:58 -0200 schrieb Marco Túlio Gontijo e
Silva:
> I think the problem here was that the package was installed with dpkg
> -i, and the other were not removed before ghc6.  A solution to this
> would be not to exit with an error from prerm when this kind of thing
> happens, maybe using || true in the call to ghc-pkg.
> 
> What do you think?

yes, we should thrive to more robust maintainer scripts. Especially
prerm should not fail if ghc-pkg believes that the package is not there.

Remember that maintainer scripts are supposed to be idempotent, i.e. if
run twice, nothing should happen. Obviously, a prerm script that fails
if the cabal package has been removed already is not idempotent.

Note that haskell-devscripts’s prerm does exactly that, using || true.
Maybe you can use their devscripts, to reduce diversity?

Greetings,
Joachim

-- 
Joachim "nomeata" Breitner
Debian Developer
  nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Reply to: