$OpenBSD: patch-utils_ghc-pkg_Main_hs,v 1.3 2014/11/22 20:23:23 kili Exp $

Horrible hack to get rid of the annoying warnings when running
pkg_add -u. This means that you do NOT get any such warning when
running ghc-pkg unregister ... -v0 --force.

--- utils/ghc-pkg/Main.hs.orig	Thu Jul 10 06:27:17 2014
+++ utils/ghc-pkg/Main.hs	Sun Nov  2 21:50:32 2014
@@ -953,7 +953,7 @@ modifyPackage fn pkgid verbosity my_flags force = do
       new_broken = map sourcePackageId (brokenPackages (allPackagesInStack new_stack))
       newly_broken = filter (`notElem` map sourcePackageId old_broken) new_broken
   --
-  when (not (null newly_broken)) $
+  when (not (null newly_broken || (force == ForceAll && verbosity <= Silent))) $
       dieOrForceAll force ("unregistering " ++ display pkgid ++
            " would break the following packages: "
               ++ unwords (map display newly_broken))
