Unwelcome triggering of hp-upgrade on 64-current.
Found this in my /var/log/syslog
Code:
ws1 hp-upgrade: hp-upgrade[1668]: warning: distro is not found in AUTH_TYPES I *really* don't like some arbitrary bit of python code trying to update bits of my system automatically from an external site, and I especially dislike it when it is an unrequested action and outside of package-management. I don't know whether others will also perceive this as unwelcome or a problem, but I thought it worth raising. |
What I find interesting about the script in question (base/password.py) is that although Slackware is listed in AUTH_TYPES:
Code:
AUTH_TYPES ={'mepis':'su', Code:
def get_distro_name(): |
Quote:
|
Not sure if this has anything at all to do with it, but since the "upgrade" I've noticed it, hplips, automatically turns on my printer whether I want it to or not.
|
Quote:
|
On further inspection it seems that hplip is not capable of auto-installing on Slackware because get_distro() in installer/core_install.py doesn't have the necessary functionality to identify Slackware due to its reliance on lsb_release:
Code:
def get_distro(self): Code:
if not found: Code:
def is_auto_installer_support(self, distro_version = DISTRO_VER_UNKNOWN): Code:
--- hplip-3.13.2/base/password.py.orig 2013-02-28 09:30:57.442134662 +0200 |
Thanks for that. Yes, your patch fixes the OS detection, but hplip still makes a couple of unwanted outbound connections to hp.com and sourceforge.
Here's my patch ;) Code:
--- upgrade.py.orig 2013-02-28 10:23:19.062450195 +0000 |
Bumping this thread for a fix. :hattip:
There's an even easier fix to this : You just have to modify this line in the passwd.py : 'slackware':'su', and change it to this : 'slackware':'su -', This did the trick on my -current 32 bits Slackware box. Hope it helps :) |
What kind of fix are you looking for? A similar patch to the one above was already applied to -current to disable hp-upgrade on Slackware. Actually making the feature work seems like a bad idea to me.
|
Hi Pat,
I was just trying to get my HP Printer to work with my Slackware -Current 32 bits install and a search engine gave me this thread. My model is supported by hplip. I was having the same warning as the author about the distro detection not being correctly detected. The printer was recognized but I had an error saying 'Communication error with the device' making the scanner function not available in Xsane. After applying my fix, I ran hp-setup again to install my printer the right way. My post should be concidered as a FYI, nothing more :) |
Making it work definitely seems like a bad idea to me.
|
All times are GMT -5. The time now is 07:11 PM. |