From 98844e09549653d19546e0c6ccc54dfad0e84abf Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Fri, 15 Jul 2022 15:03:35 +0100 Subject: [PATCH] Do not emit a warning if the .haddock file is missing As it is quite common on Debian installations to install the -dev package without the -doc package. Gbp-Pq: Name no-missing-haddock-file-warning --- utils/ghc-pkg/Main.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/ghc-pkg/Main.hs b/utils/ghc-pkg/Main.hs index 37fd5ba5..44e53582 100644 --- a/utils/ghc-pkg/Main.hs +++ b/utils/ghc-pkg/Main.hs @@ -1875,8 +1875,10 @@ checkPackageConfig pkg verbosity db_stack mapM_ (checkDir True "dynamic-library-dirs") (libraryDynDirs pkg) mapM_ (checkDir True "include-dirs") (includeDirs pkg) mapM_ (checkDir True "framework-dirs") (frameworkDirs pkg) - mapM_ (checkFile True "haddock-interfaces") (haddockInterfaces pkg) - mapM_ (checkDirURL True "haddock-html") (haddockHTMLs pkg) + -- In Debian, it is quite normal that the package is installed without the + -- documentation. Do not print a warning there. + -- mapM_ (checkFile True "haddock-interfaces") (haddockInterfaces pkg) + -- mapM_ (checkDirURL True "haddock-html") (haddockHTMLs pkg) checkDuplicateModules pkg checkExposedModules db_stack pkg checkOtherModules pkg -- 2.30.2