wrap('','',$msg));
}
-sub debug {
+sub report_upload_to_archive {
my $msg = shift;
my $package_name = shift;
push @email_addresses,
directory_email_addresses($op_header->{directory});
- # Phone home. E-mail the contents of the directive file to the maintainer,
- # for debugging purposes.
- if (defined $op_header->{package}) {
- debug($directive_text, $op_header->{package}) if DEBUG;
- } else {
- debug($directive_text, '') if DEBUG;
- }
+ # Phone home. E-mail the contents of the directive file to the public
+ # archive list.
+ report_upload_to_archive($directive_text,
+ defined $op_header->{package}
+ ? $op_header->{package} : '');
validate_directive($packet, $oplist);