Package: haskell-devscripts
Version: 0.9.11
Severity: minor
Tags: patch

Hi,

If dh_haskell_depends cannot find any inter-package that should result
in packages being added to Recommends it calls dpkg-query with no
arguments, causing a spurious warning during builds:

  [..]

  Running dh_haskell_depends -plibghc-yi-language-doc
  dpkg-query: error: --search needs at least one file name pattern
  argument
  
  Use --help for help about querying packages.
  dh_haskell_blurbs "ghc" -plibghc-yi-language-doc

  [..]

Patch attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
diff --git a/dh_haskell_depends b/dh_haskell_depends
index 3ecebec..46b9214 100644
--- a/dh_haskell_depends
+++ b/dh_haskell_depends
@@ -138,7 +138,7 @@ for pkg in `dh_listpackages $args`; do
                 | grep ^/ \
                 | cut -d# -f1 \
                 | sort -u \
-                | xargs dpkg -S \
+                | xargs -r dpkg -S \
                 | cut -d: -f1 \
                 | sort -u \
                 | sed -e :a -e '$!N; s/\n/, /; ta'`

Reply via email to