Subject: [PATCH] Look for ${misc:Depends} also in pre-depends and not in suggests, as the packages are needed at the time the maintainer scripts are run, not later

From: Raphael Geissert <[email-masked]>
Date: Mon, 19 Jan 2009 18:20:06 -0600

Signed-off-by: Raphael Geissert <[email-masked]>
---
 checks/debhelper |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/checks/debhelper b/checks/debhelper
index ebd9f81..7fe7088 100644
--- a/checks/debhelper
+++ b/checks/debhelper
@@ -146,7 +146,7 @@ for my $binpkg (keys %$pkgs) {
     my $depends = '';
     local $/;
 
-    foreach my $field (qw(depends recommends suggests)) {
+    foreach my $field (qw(pre-depends depends recommends)) {
 	if (open DEPENDS, '<', "control/$binpkg/$field") {
 	    chomp ($depends .= <DEPENDS>);
 	    close(DEPENDS);