File: 0066-Ignore-symlinks-when-installing-plugins.patch

package info (click to toggle)
hplip 3.22.10%2Bdfsg0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 171,296 kB
  • sloc: python: 83,373; ansic: 71,016; cpp: 65,202; sh: 4,408; perl: 4,397; makefile: 937
file content (31 lines) | stat: -rw-r--r-- 1,432 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: Zdenek Dohnal <zdohnal@redhat.com>
Date: Fri, 31 Jan 2020 13:37:46 +0100
Subject: Ignore symlinks when installing plugins

External scripts, which are downloaded and run by hp-plugin, try to create links
in non-existing dirs. These scripts ignore errors, so plugin is installed fine
but then internal hp-plugin can check for plugin state, where links are checked too.
It results in corrupted plugin state, which breaks printer installation by GUI hp-setup.
Temporary workaround is to ignore these bad links and real fix should come from HP,
because their external scripts try to create links in non-existing dirs.
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1671513
Reported upstream: https://bugs.launchpad.net/hplip/+bug/1814574

Origin: https://src.fedoraproject.org/rpms/hplip/blob/master/f/hplip-missing-links.patch
---
 installer/pluginhandler.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/installer/pluginhandler.py b/installer/pluginhandler.py
index edc7295..fece028 100755
--- a/installer/pluginhandler.py
+++ b/installer/pluginhandler.py
@@ -167,7 +167,7 @@ class PluginHandle(object):
                         continue
                     if link != "":
                         if not utils.check_library(link):
-                            self.__plugin_state = PLUGIN_FILES_CORRUPTED
+                            pass
 
 
     def __getPluginInformation(self, callback=None):