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