hplip/disable_hp-upgrade.patch
Martin Wilck be2148f035 Accepting request 1037144 from home:dimstar:Factory
- Update disable_hp-upgrade.patch: Log the 'openSUSE disabled this
  for security message' is 'info', not 'error'.

IMHO, an Error condition is something a user/admin is supposed to fix
here, this is merely an information that this is unsupported. Do not
add this to the journal as error

OBS-URL: https://build.opensuse.org/request/show/1037144
OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=231
2022-11-21 16:41:37 +00:00

17 lines
533 B
Diff

Index: b/upgrade.py
===================================================================
--- a/upgrade.py
+++ b/upgrade.py
@@ -207,6 +207,11 @@ if os.geteuid() == 0:
if os.getenv("HPLIP_DEBUG"):
log.set_level('debug')
+
+log.info("HPLIP upgrade is disabled by openSUSE for security reasons, see https://bugzilla.suse.com/show_bug.cgi?id=853405 - if you like to upgrade HPLIP, use an openSUSE software package manager like YaST or zypper.")
+clean_exit(1)
+
+
for o, a in opts:
if o in ('-h', '--help'):
usage()