diff options
author | Joey Hess <joey@kitenet.net> | 2013-05-05 16:11:58 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-05-05 16:11:58 -0400 |
commit | 778b1d5f7119622c755278ed163b316e92cd1487 (patch) | |
tree | 5204a9bb213e59d083f6bb467c6c94d40b53d54b /dh_installdeb | |
parent | 4aff421d7332ef5791a2b2e271139f63e8e9b649 (diff) |
dh_installdeb: Drop pre-dependency on dpkg for dpkg-maintscript-helper. Closes: #703264
Diffstat (limited to 'dh_installdeb')
-rwxr-xr-x | dh_installdeb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/dh_installdeb b/dh_installdeb index bc4091b7..e2331701 100755 --- a/dh_installdeb +++ b/dh_installdeb @@ -58,11 +58,6 @@ code cannot be inserted here. For example, a line such as C<mv_conffile /etc/oldconffile /etc/newconffile> will insert maintainer script snippets into all maintainer scripts sufficient to move that conffile. -A versioned Pre-Dependency on dpkg is needed to use -L<dpkg-maintscript-helper(1)>. An appropriate Pre-Dependency is -set in ${misc:Pre-Depends} ; you should make sure to put that token into -an appropriate place in your debian/control file. - =back =cut @@ -72,8 +67,8 @@ init(); # dpkg-maintscript-helper commands with their associated dpkg pre-dependency # versions. my %maintscript_predeps = ( - "rm_conffile" => "1.15.7.2", - "mv_conffile" => "1.15.7.2", + "rm_conffile" => "", + "mv_conffile" => "", ); foreach my $package (@{$dh{DOPACKAGES}}) { @@ -105,7 +100,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) { error("unknown dpkg-maintscript-helper command: $cmd") unless exists $maintscript_predeps{$cmd}; addsubstvar($package, "misc:Pre-Depends", "dpkg", - ">= $maintscript_predeps{$cmd}"); + ">= $maintscript_predeps{$cmd}") + if length $maintscript_predeps{$cmd}; my $params=escape_shell(@$line); foreach my $script (qw{postinst preinst prerm postrm}) { autoscript($package, $script, "maintscript-helper", |