aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo De Nardin <spuk@mandriva.org>2007-05-08 06:22:34 +0000
committerGustavo De Nardin <spuk@mandriva.org>2007-05-08 06:22:34 +0000
commit7c973b4958c95a3cc1a49d5e70657f49882679bc (patch)
tree19a752820174eed96e6780b2402db3051658d2a8
parent6765dd9a064589327d464a50c45b8a53c27eaaa5 (diff)
downloadmga-youri-submit-7c973b4958c95a3cc1a49d5e70657f49882679bc.tar
mga-youri-submit-7c973b4958c95a3cc1a49d5e70657f49882679bc.tar.gz
mga-youri-submit-7c973b4958c95a3cc1a49d5e70657f49882679bc.tar.bz2
mga-youri-submit-7c973b4958c95a3cc1a49d5e70657f49882679bc.tar.xz
mga-youri-submit-7c973b4958c95a3cc1a49d5e70657f49882679bc.zip
fixing the Big SVN Breakage: reverting last commit, restoring state as of latest working checkout in ken
-rw-r--r--lib/Youri/Submit/Reject/Mail.pm8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Youri/Submit/Reject/Mail.pm b/lib/Youri/Submit/Reject/Mail.pm
index cee5a19..c20a832 100644
--- a/lib/Youri/Submit/Reject/Mail.pm
+++ b/lib/Youri/Submit/Reject/Mail.pm
@@ -54,19 +54,15 @@ sub run {
my ($self, $package, $errors, $repository, $target, $define) = @_;
croak "Not a class method" unless ref $self;
- my $from = $package->get_packager();
my $section = $repository->_get_section($package, $target, $define);
- # force from adress if defined
- $from =~ s/<.*>/<$self->{_from}>/ if $self->{_from};
-
my $subject =
($self->{_prefix} ? '[' . $self->{_prefix} . '] ' : '' ) . ($section ? "$section " : '') .
$package->get_revision_name();
my $information = $package->get_information();
my $last_change = $package->get_last_change();
my $author = $last_change->[Youri::Package::CHANGE_AUTHOR] if $last_change;
- my $list = map { "- $_\n" } @{$last_change->[Youri::Package::CHANGE_TEXT]} if $last_change;
+ my $list = join('', map { "- $_\n" } @{$last_change->[Youri::Package::CHANGE_TEXT]}) if $last_change;
my $content =
"Errors: \n\n" . join("\n", map {
( "* $_", (map { " - $_" } @{$errors->{$_}}), "\n");
@@ -84,7 +80,7 @@ sub run {
Type => 'text/plain',
Charset => $self->{_charset},
Encoding => $self->{_encoding},
- From => $from,
+ From => $self->{_from},
To => $self->{_to},
Subject => $subject,
Data => $content,