Sfoglia il codice sorgente

dpkg-genchanges, Dpkg::Vendor::Default: drop hook before-changes-creation

This hook is useless now that the Ubuntu vendor object uses
post-process-changelog-entry to add their Launchpad-Bugs-Fixed
field.
Raphaël Hertzog 17 anni fa
parent
commit
b3a76130a9
2 ha cambiato i file con 0 aggiunte e 10 eliminazioni
  1. 0 8
      scripts/Dpkg/Vendor/Default.pm
  2. 0 2
      scripts/dpkg-genchanges.pl

+ 0 - 8
scripts/Dpkg/Vendor/Default.pm

@@ -72,12 +72,6 @@ supported hooks are:
 The first parameter is a Dpkg::Source::Package object. The hook is called
 just before the execution of $srcpkg->build().
 
-=item before-changes-creation ($fields)
-
-The hook is called just before the content of .changes file is output
-by dpkg-genchanges. The first parameter is a Dpkg::Control object
-representing all the fields that are going to be output.
-
 =item keyrings ()
 
 The hook is called when dpkg-source is checking a signature on a source
@@ -110,8 +104,6 @@ sub run_hook {
 
     if ($hook eq "before-source-build") {
         my $srcpkg = shift @params;
-    } elsif ($hook eq "before-changes-creation") {
-        my $fields = shift @params;
     } elsif ($hook eq "keyrings") {
         return ();
     } elsif ($hook eq "register-custom-fields") {

+ 0 - 2
scripts/dpkg-genchanges.pl

@@ -19,7 +19,6 @@ use Dpkg::Substvars;
 use Dpkg::Vars;
 use Dpkg::Changelog qw(parse_changelog);
 use Dpkg::Version qw(parseversion compare_versions);
-use Dpkg::Vendor qw(run_vendor_hook);
 
 textdomain("dpkg-dev");
 
@@ -524,6 +523,5 @@ for my $f (keys %remove) {
     delete $fields->{$f};
 }
 
-run_vendor_hook('before-changes-creation', $fields);
 $fields->output(\*STDOUT); # Note: no substitution of variables