Package: hplip-data Version: 3.22.2+dfsg0-1 Severity: normal Tags: patch Hello,
get_distro() in installer/core_install.py fails with Traceback (most recent call last): File "/usr/bin/hp-check", line 861, in <module> dep.core.init() File "/usr/share/hplip/installer/core_install.py", line 523, in init self.get_distro() File "/usr/share/hplip/installer/core_install.py", line 661, in get_distro if 'MX' in distro_release_name: NameError: name 'distro_release_name' is not defined This patch fixes the exception for me, although I don't have an mxlinux setup to check that it still produces the correct output in that case. --- #<buffer core_install.py</tmp>> +++ #<buffer core_install.py<installer>> @@ -658,9 +658,9 @@ ver = "5.0" elif name == "rhel" and ver[0] == "6" and ver[1] == ".": ver = "6.0" - if 'MX' in distro_release_name: + if 'MX' in name: + ver = name[3:5] name = "mxlinux" - ver = distro_release_name[3:5] if 'manjaro' in name.lower(): version = ver.split('.') ver = version[0] +'.'+version[1] Best wishes Mark -- System Information: Debian Release: bookworm/sid Architecture: amd64 (x86_64) Kernel: Linux 5.16.0-4-amd64 (SMP w/2 CPU threads; PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages hplip-data depends on: ii python3 3.10.4-1+b1 ii python3-distro 1.7.0-1 ii xz-utils 5.2.5-2.1 hplip-data recommends no packages. Versions of packages hplip-data suggests: ii hplip 3.22.2+dfsg0-1 -- no debconf information -- debsums errors found: debsums: changed file /usr/share/hplip/installer/core_install.py (from hplip-data package)