patch-utils_ghc-pkg_Main_hs 840 B

123456789101112131415161718
  1. $OpenBSD: patch-utils_ghc-pkg_Main_hs,v 1.4 2015/09/19 07:42:57 kili Exp $
  2. Horrible hack to get rid of the annoying warnings when running
  3. pkg_add -u. This means that you do NOT get any such warning when
  4. running ghc-pkg unregister ... -v0 --force.
  5. --- utils/ghc-pkg/Main.hs.orig Tue Jul 21 15:52:50 2015
  6. +++ utils/ghc-pkg/Main.hs Tue Sep 1 16:16:37 2015
  7. @@ -1119,7 +1119,7 @@ modifyPackage fn pkgarg verbosity my_flags force = do
  8. = display pkgid
  9. | otherwise = display pkgid ++ "@" ++ display (packageKey pkg)
  10. where pkgid = sourcePackageId pkg
  11. - when (not (null newly_broken)) $
  12. + when (not (null newly_broken || (force == ForceAll && verbosity <= Silent))) $
  13. dieOrForceAll force ("unregistering would break the following packages: "
  14. ++ unwords (map displayQualPkgId newly_broken))