1
0

- update prepare_spec from git to fix (bnc#889537)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-format_spec_file?expand=0&rev=140
This commit is contained in:
Ruediger Oertel 2014-07-31 13:47:43 +00:00 committed by Git OBS Bridge
parent 0afeb9df85
commit 510ce65ab2
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jul 31 15:44:36 CEST 2014 - ro@suse.de
- update prepare_spec from git to fix (bnc#889537)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jul 10 10:49:45 UTC 2014 - coolo@suse.com Thu Jul 10 10:49:45 UTC 2014 - coolo@suse.com

View File

@ -267,7 +267,7 @@ sub read_and_parse_old_spec {
next; next;
} }
if ( /^# vim:/ ) { if ( /^# vim:/ && $current_section eq "header" ) {
$vim_modeline = $_; $vim_modeline = $_;
next; next;
} }
@ -320,7 +320,7 @@ sub read_and_parse_old_spec {
} }
my %aa; my %aa;
if ($cur_tag =~ /%\(/) { if ($cur_tag =~ /%\(/ || $cur_tag =~ /%\{/) {
# do not touch lines with shell execution # do not touch lines with shell execution
$aa{$cur_tag}=1; $aa{$cur_tag}=1;
} else { } else {
@ -724,6 +724,6 @@ while (@oldspec) {
} }
} }
print "\n" unless $line eq "XXXBLANKLINE"; print "\n" unless $line eq "XXXBLANKLINE" || $line eq "";
print "%changelog\n"; print "%changelog\n";