summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRaphaël Hertzog <hertzog@debian.org>2009-09-20 10:02:06 +0200
committerRaphaël Hertzog <hertzog@debian.org>2009-09-20 12:06:05 +0200
commit6f721eaa8b2caa26ec1fc911474191d89c6f3cb2 (patch)
tree99482dc643c10294656dcfc93cb6ecb1ff328133 /scripts
parent88a0baff55e928679551ff6c68bdc8884d6fbf62 (diff)
downloaddpkg-6f721eaa8b2caa26ec1fc911474191d89c6f3cb2.tar.gz
Dpkg::Vendor::Ubuntu: register custom field Launchpad-Bugs-Fixed
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Dpkg/Vendor/Ubuntu.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/Dpkg/Vendor/Ubuntu.pm b/scripts/Dpkg/Vendor/Ubuntu.pm
index 2f31a8b61..b4b4596ea 100644
--- a/scripts/Dpkg/Vendor/Ubuntu.pm
+++ b/scripts/Dpkg/Vendor/Ubuntu.pm
@@ -23,6 +23,7 @@ use warnings;
use Dpkg::ErrorHandling;
use Dpkg::Gettext;
+use Dpkg::Control::Types;
use base 'Dpkg::Vendor::Debian';
@@ -74,7 +75,16 @@ sub run_hook {
push(@keyrings, '/usr/share/keyrings/ubuntu-archive-keyring.gpg');
return @keyrings;
+ } elsif ($hook eq "register-custom-fields") {
+ my @field_ops = $self->SUPER::run_hook($hook);
+ push @field_ops,
+ [ "register", "Launchpad-Bugs-Fixed",
+ CTRL_FILE_CHANGES | CTRL_CHANGELOG ],
+ [ "insert_after", CTRL_FILE_CHANGES, "Closes", "Launchpad-Bugs-Fixed" ],
+ [ "insert_after", CTRL_CHANGELOG, "Closes", "Launchpad-Bugs-Fixed" ];
+ return @field_ops;
}
+
}
=head1 PUBLIC FUNCTIONS