- 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:
parent
0afeb9df85
commit
510ce65ab2
@ -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
|
||||||
|
|
||||||
|
@ -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";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user