[Pkg-hpijs-devel] Bug#692431: hplip: kde4-kdesudo-support.dpatch is broken (fix attached)

Dmitry Shachnev mitya57 at gmail.com
Tue Nov 6 07:32:21 UTC 2012


Source: hplip
Version: 3.12.10a-1
Severity: normal
Tags: patch

Dear maintainers,

The kde4-kdesudo-support.dpatch tries to all "utils.which" function
which is not defined.

This causes hp-toolbox to crash with a traceback. Example:

| Traceback (most recent call last):
|   File "/usr/bin/hp-diagnose_queues", line 251, in <module>
|     if add_group(core) is False:
|   File "/usr/bin/hp-diagnose_queues", line 93, in add_group
|     su_sudo = utils.su_sudo()
|   File "/usr/share/hplip/base/utils.py", line 1782, in su_sudo
|     elif utils.which('/usr/lib/kde4/libexec/kdesu'):
| NameError: global name 'utils' is not defined

A patch that fixes this is attached.

Thanks for considering the patch,
--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_nameerror_in_utils.py.patch
Type: text/x-patch
Size: 712 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-hpijs-devel/attachments/20121106/5166b8cf/attachment.bin>


More information about the Pkg-hpijs-devel mailing list