summaryrefslogtreecommitdiff
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
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.
-rw-r--r--debian/changelog8
-rwxr-xr-xdh5
-rw-r--r--doc/PROGRAMMING7
3 files changed, 19 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index ae3846c..69e7519 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+debhelper (7.3.12) UNRELEASED; urgency=low
+
+ * 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.
+
+ -- Joey Hess <joeyh@debian.org> Thu, 06 Aug 2009 11:07:45 -0400
+
debhelper (7.3.11) unstable; urgency=low
* perl_build: Fix Build check to honor source directory setting.
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;
diff --git a/doc/PROGRAMMING b/doc/PROGRAMMING
index 4e7ea46..c3530f2 100644
--- a/doc/PROGRAMMING
+++ b/doc/PROGRAMMING
@@ -263,7 +263,12 @@ insert_after($existing_command, $new_command)
Insert $new_command in sequences after $existing_command
remove_command($existing_command)
- Remove $existing_command from the list of commands to run.
+ Remove $existing_command from the list of commands to run
+ in all sequences.
+
+add_command($sequence, $new_command)
+ Add $new_command to the beginning of the specified sequence.
+ If the sequence does not exist, it will be created.
Buildsystem Classes:
-------------------