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

Re: Bug#535967: Inconsistent state after removal.

On Tue, Jul 07, 2009 at 02:21:44PM +0200, Joachim Breitner wrote:
> Kaol, can you comment on the ghc-pkg behaviour? Is "--force" the right
> thing to do, or is there an alternative?

Did you try --no-user-package-conf yet?  Other than that, something
like "HOME=/ ghc-pkg ..." should work, even if that's an ugly hack.

I'm not sure if ignoring ghc-pkg unregister's error or using --force
is that good an idea.  There's global user installed Cabal packages to
consider (inadvisable as those may be).  I'd rather expect users to
unregister those first by themselves with ghc-pkg.  After all, they're
there because they installed them by themselves with ghc-pkg, in the
first place.

Reply to: