diff options
author | Michael Scherer <misc@mageia.org> | 2011-04-15 11:17:47 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-04-15 11:17:47 +0000 |
commit | e6d6cbab17f9f64e239bf6f3bcef0c5b521486bd (patch) | |
tree | 624fcdde6bc37c9a14f9d928e4ee25ea05a4bde4 | |
parent | 203503c712d99f91c61dbe27f0f40345ff992567 (diff) | |
download | iurt-e6d6cbab17f9f64e239bf6f3bcef0c5b521486bd.tar iurt-e6d6cbab17f9f64e239bf6f3bcef0c5b521486bd.tar.gz iurt-e6d6cbab17f9f64e239bf6f3bcef0c5b521486bd.tar.bz2 iurt-e6d6cbab17f9f64e239bf6f3bcef0c5b521486bd.tar.xz iurt-e6d6cbab17f9f64e239bf6f3bcef0c5b521486bd.zip |
simplify the logic around email assignation. If $ent->{user} is not set, get_author_email will be empty and so we use
$config->{packager} without needed to check intermediary function.
-rwxr-xr-x | ulri | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -562,12 +562,8 @@ foreach my $prefix (sort keys %pkg_tree) { my $media = $ent->{media}; my $target = $ent->{target}; my $srpms = $ent->{srpms} or next; - my $user = $ent->{user}; - if ($user) { - $user = get_author_email($user) || $config->{packager}; - } else { - $user = $config->{packager}; - } + + my $user = get_author_email($ent->{user}) || $config->{packager}; $user =~ s/([<>])/\\$1/g; # Local pathnames |