Skip to content

Commit

Permalink
Only emit a group tag if it is available
Browse files Browse the repository at this point in the history
This makes it possible to remove those sad rpm group tags.
  • Loading branch information
dirkmueller committed Jun 12, 2015
1 parent 7cf22e3 commit ae5d0b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prepare_spec
Expand Up @@ -717,7 +717,9 @@ while (@oldspec) {
my $license = $seen_licenses{$current_package} || $main_license;
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);
if ($group) {
printf("%-16s%s\n", "Group:", $group) if (!$groups_unique || $first_summary || $current_package eq $base_package);
}
$first_summary = 0;
} else {
print "$line\n";
Expand Down

0 comments on commit ae5d0b1

Please sign in to comment.