aboutsummaryrefslogtreecommitdiffstats
path: root/rpmbuildupdate
diff options
context:
space:
mode:
Diffstat (limited to 'rpmbuildupdate')
-rwxr-xr-xrpmbuildupdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmbuildupdate b/rpmbuildupdate
index 7f30245..b8bd3c6 100755
--- a/rpmbuildupdate
+++ b/rpmbuildupdate
@@ -218,6 +218,7 @@ sub build {
my ($spec_path, $pkg, $version, $release, $newversion) = @_;
my ($message, $spec, @url, %specvars);
my ($newrelease, $release_prefix) = ($1,$2) if $release =~ /^(.*\d+)(\D*)$/g;
+ my $email = get_email();
my $hdlist_spec = RPM4::specnew($spec_path,force => 1) or die "Unable to parse spec $spec_path\n";
if ($newversion) {
print "===> Building $pkg $newversion\n";
@@ -303,7 +304,6 @@ sub build {
if (/^\%changelog/) {
$message =~ s/\%\%VERSION/$newversion/;
my $epoch = ( $specvars{'epoch'} ? "$specvars{'epoch'}:" : "" );
- my $email = get_email();
$spec .= "* " . `LC_TIME=C date '+%a %b %d %Y'|tr -d '\n'` . " $email $epoch$newversion-$newrelease\n";
$spec .= "$message\n\n";
}