summaryrefslogtreecommitdiff
path: root/dh_installdebconf
diff options
context:
space:
mode:
Diffstat (limited to 'dh_installdebconf')
-rwxr-xr-xdh_installdebconf9
1 files changed, 5 insertions, 4 deletions
diff --git a/dh_installdebconf b/dh_installdebconf
index c9c72b2a..66dafd0c 100755
--- a/dh_installdebconf
+++ b/dh_installdebconf
@@ -112,13 +112,14 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
}
}
+ # I'm going with debconf 0.5 because it was the first
+ # "modern" one.
+ my $debconfdep="debconf (>= 0.5) | debconf-2.0";
if ($config ne '' || $templates ne '') {
- # I'm going with debconf 0.5 because it was the first
- # "modern" one.
- addsubstvar($package, "misc:Depends", "debconf", ">= 0.5");
+ addsubstvar($package, "misc:Depends", $debconfdep);
}
else {
- addsubstvar($package, "misc:Depends", "debconf", ">= 0.5", 1); # remove
+ addsubstvar($package, "misc:Depends", $debconfdep, undef, 1); # remove
}
if (($config ne '' || $templates ne '') && ! $dh{NOSCRIPTS}) {