https://bugzilla.novell.com/show_bug.cgi?id=891152
https://bugzilla.novell.com/show_bug.cgi?id=891152#c5
Ruediger Oertel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
InfoProvider| |coolo@suse.com
--- Comment #5 from Ruediger Oertel 2014-08-12 23:01:33 UTC ---
hm, the problem is that the main package's summary is in a %if %else cascade.
this patch in prepare_spec (the variant used in obs-service-format_spec_file)
would fix the problem without (hopefully) breaking other specfiles:
diff --git a/prepare_spec b/prepare_spec
index 58c7953..3da3c34 100755
--- a/prepare_spec
+++ b/prepare_spec
@@ -715,9 +715,9 @@ 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);
+ printf("%-16s%s\n", "License:", $license) if (!$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);
+ printf("%-16s%s\n", "Group:", $group) if (!$groups_unique ||
$first_summary || $current_package eq $base_package);
$first_summary = 0;
} else {
print "$line\n";
coolo, this is basically your code from
45d7922f9bca5a00df8c0a2d1c340b543c7938b3,
what do you think ?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.