[Reproducible-commits] [debhelper] 10/28: dh_gencontrol: Add empty misc:Pre-Depends substvar if needed
Mattia Rizzolo
mattia at mapreri.org
Fri May 1 18:07:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
mapreri-guest pushed a commit to branch pu/reproducible_builds
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/reproducible/debhelper.git
More information about the Reproducible-commits
mailing list