From c39445a5bc22b02fa67a990db2d9f1cdfe471ebe Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 4 Dec 2004 23:11:46 +0000 Subject: - fix bug when %%changelog is present in the spec file --- rpmbuildupdate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpmbuildupdate') diff --git a/rpmbuildupdate b/rpmbuildupdate index 88657ea..3eeee86 100755 --- a/rpmbuildupdate +++ b/rpmbuildupdate @@ -247,7 +247,7 @@ sub build { $specvars{$i} = $1 if !$specvars{$i} && /$i\s*:\s+(\S+)/gi; } - if (/\%changelog/) + if (/(:?^|[^%])\%changelog/g) { $message =~ s/\%\%VERSION/$newversion/; my @l = getpwuid($<); -- cgit v1.2.1