forked from pool/obs-service-format_spec_file
- do not enter empty license line if not found (eg in include file)
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-format_spec_file?expand=0&rev=143
This commit is contained in:
parent
02eaff4f09
commit
53670ee8e6
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 14 02:28:08 CEST 2014 - ro@suse.de
|
||||
|
||||
- do not enter empty license line if not found (eg in include file)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 13 11:21:40 CEST 2014 - ro@suse.de
|
||||
|
||||
|
@ -715,7 +715,7 @@ while (@oldspec) {
|
||||
} elsif ($line =~ m/XXXPOSTSUMMARY (.*)$/) {
|
||||
my $current_package = $1;
|
||||
my $license = $seen_licenses{$current_package} || $main_license;
|
||||
printf("%-16s%s\n", "License:", $license) if (!$license_unique || $first_summary || $current_package eq $base_package);
|
||||
printf("%-16s%s\n", "License:", $license) if $license && (!$license_unique || $first_summary || $current_package eq $base_package);
|
||||
my $group = $seen_groups{$current_package} || $main_group;
|
||||
printf("%-16s%s\n", "Group:", $group) if (!$groups_unique || $first_summary || $current_package eq $base_package);
|
||||
$first_summary = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user