[debhelper-devel] [debhelper] 02/04: dh_gencontrol: Add empty misc:Pre-Depends substvar if needed

Niels Thykier nthykier at moszumanska.debian.org
Fri May 1 05:23:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository debhelper.

commit 24da8e7d4b0e6147db31474ece5ae042b467f08b
Author: Niels Thykier <niels at thykier.net>
Date:   Fri May 1 07:16:38 2015 +0200

    dh_gencontrol: Add empty misc:Pre-Depends substvar if needed
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 dh_gencontrol | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dh_gencontrol b/dh_gencontrol
index 26aa321..77a73b5 100755
--- a/dh_gencontrol
+++ b/dh_gencontrol
@@ -63,6 +63,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 	if (! -e $substvars || system("grep -q '^misc:Depends=' $substvars") != 0) {
 		complex_doit("echo misc:Depends= >> $substvars");
 	}
+	# avoid (another) gratuitous warning
+	if (! -e $substvars || system("grep -q '^misc:Pre-Depends=' $substvars") != 0) {
+		complex_doit("echo misc:Pre-Depends= >> $substvars");
+	}
 	
 	# Generate and install control file.
 	doit("dpkg-gencontrol", "-p$package", "-l$changelog", "-T$substvars", 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list