aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-04-15 11:17:47 +0000
committerMichael Scherer <misc@mageia.org>2011-04-15 11:17:47 +0000
commite6d6cbab17f9f64e239bf6f3bcef0c5b521486bd (patch)
tree624fcdde6bc37c9a14f9d928e4ee25ea05a4bde4
parent203503c712d99f91c61dbe27f0f40345ff992567 (diff)
downloadiurt-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-xulri8
1 files changed, 2 insertions, 6 deletions
diff --git a/ulri b/ulri
index cf26cac..b69dea4 100755
--- a/ulri
+++ b/ulri
@@ -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