diff options
-rwxr-xr-x | rpmbuildupdate | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rpmbuildupdate b/rpmbuildupdate index a75a2b9..805504b 100755 --- a/rpmbuildupdate +++ b/rpmbuildupdate @@ -112,8 +112,8 @@ sub build if(/\%changelog/) { my $email; - $email = $ENV{EMAIL} || - qx[awk -F: '/$ENV{USER}/{print \$5}' /etc/passwd|tr -d '\n']." <$ENV{USER}\@mandrakesoft.com> "; + my @l = getpwuid($<); + $email = $ENV{EMAIL} || $l[6]." <$l[0]\@mandrakesoft.com> "; $spec .= "* ".qx[LC_TIME=C date '+%a %b %d %Y'|tr -d '\n']." ".$email. " ".$newversion."-".$config{release}."\n"; $spec .= "- New release $newversion\n\n"; @@ -294,7 +294,7 @@ sub usage { print "rpmbuildupdate v0.3 helps you build up to date RPMs.\n\n"; print "By Julien Danjou <jdanjou\@mandrakesoft.com>\n"; - print "Copyright (c) 2003 by MandrakeSoft.\n"; + print "Copyright (c) 2003-2004 by MandrakeSoft.\n"; print "This is free software under the GPL License.\n"; print "Usage: rpmbuildupdate [options] [pkg] [newversion]\n\n"; |