The following commit has been merged in the master branch:
commit 6f721eaa8b2caa26ec1fc911474191d89c6f3cb2
Author: Raphaël Hertzog <[email protected]>
Date:   Sun Sep 20 10:02:06 2009 +0200

    Dpkg::Vendor::Ubuntu: register custom field Launchpad-Bugs-Fixed

diff --git a/scripts/Dpkg/Vendor/Ubuntu.pm b/scripts/Dpkg/Vendor/Ubuntu.pm
index 2f31a8b..b4b4596 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

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to