diff options
author | Michael Scherer <misc@mandriva.com> | 2006-01-09 10:05:29 +0000 |
---|---|---|
committer | Michael Scherer <misc@mandriva.com> | 2006-01-09 10:05:29 +0000 |
commit | 7ee956c50f53653f6de0504295b81894b843db70 (patch) | |
tree | 2c414153d257ca9aa8de0e860694aebe45cd6f02 | |
parent | 1842e55df0bb3deedca8beef2f4c340a6e06017e (diff) | |
download | bootsplash-7ee956c50f53653f6de0504295b81894b843db70.tar bootsplash-7ee956c50f53653f6de0504295b81894b843db70.tar.gz bootsplash-7ee956c50f53653f6de0504295b81894b843db70.tar.bz2 bootsplash-7ee956c50f53653f6de0504295b81894b843db70.tar.xz bootsplash-7ee956c50f53653f6de0504295b81894b843db70.zip |
- do not use hardcoded %packager tag in spec file if present
-rwxr-xr-x | rpmbuildupdate | 2 |
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"; } |