summaryrefslogtreecommitdiff
path: root/dh
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-08-06 11:08:45 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-08-06 11:08:45 -0400
commit4433049e1c444db9536be2141431d98b0ea438e4 (patch)
tree9c23f69145a393c9f66ca473fc3f2f2fa6be01e3 /dh
parent7b1e681929b2ff7881dd130c22889dcab184a80e (diff)
dh: Allow creation of new sequences (such as to handle a patch target for quilt), by adding an add_command function to the sequence addon interface. See #540124.
Diffstat (limited to 'dh')
-rwxr-xr-xdh5
1 files changed, 5 insertions, 0 deletions
diff --git a/dh b/dh
index c34a5a0..2a6c0a3 100755
--- a/dh
+++ b/dh
@@ -322,6 +322,11 @@ sub remove_command {
}
}
+sub add_command {
+ my $command=shift;
+ my $sequence=shift;
+ unshift @{$sequences{$sequence}}, $command;
+}
foreach my $addon (@{$dh{WITH}}) {
my $mod="Debian::Debhelper::Sequence::$addon";
$mod=~s/-/_/g;