Blame SOURCES/0001-document-new-shouldn-t-get-prefixed-to-become-libreo.patch

76e0e0
From ce37356f6bcaaef62a80814d7d54d3aa6d53167d Mon Sep 17 00:00:00 2001
76e0e0
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
76e0e0
Date: Tue, 12 Oct 2021 09:52:53 +0100
76e0e0
Subject: [PATCH] document-new shouldn't get prefixed to become
76e0e0
 libreoffice-document-new
76e0e0
76e0e0
seen by rpminspect as .desktop "references icon libreoffice-document-new
76e0e0
but no subpackages contain libreoffice-document-new"
76e0e0
76e0e0
introduced by:
76e0e0
76e0e0
commit f767d5e2b017c0d0cfd23ff3318cb30901847722
76e0e0
Date:   Sun Sep 1 11:30:12 2019 +0200
76e0e0
76e0e0
    Add icons to New Document desktop file actions
76e0e0
76e0e0
in the [Desktop Action NewDocument] section
76e0e0
76e0e0
Change-Id: I64ce5e2dbaca32083b2f76e960c33a815f8a3773
76e0e0
---
76e0e0
 sysui/desktop/share/brand.pl | 8 +++++---
76e0e0
 1 file changed, 5 insertions(+), 3 deletions(-)
76e0e0
76e0e0
diff --git a/sysui/desktop/share/brand.pl b/sysui/desktop/share/brand.pl
76e0e0
index 9d73e619c495..b17a7374fd62 100644
76e0e0
--- a/sysui/desktop/share/brand.pl
76e0e0
+++ b/sysui/desktop/share/brand.pl
76e0e0
@@ -81,9 +81,11 @@ while ($arg = shift) {
76e0e0
         # remove possible Windows line-ends
76e0e0
         chomp;
76e0e0
 
76e0e0
-        # patch all occurrences of openoffice in ICON line with
76e0e0
-        # $prefix
76e0e0
-        s/Icon=/Icon=$iconprefix/;
76e0e0
+        # patch all icons in ICON line with $prefix
76e0e0
+        if (! /Icon=document-new/ ) { # except for Icon=document-new which
76e0e0
+                                      # is a stock icon, not one of ours
76e0e0
+            s/Icon=/Icon=$iconprefix/;
76e0e0
+        }
76e0e0
 
76e0e0
         # patch all occurrences of openoffice in icon_filename
76e0e0
         # line with $prefix
76e0e0
-- 
76e0e0
2.32.0
76e0e0