ALT Linux repos
S: | 3.23.8-alt1 |
5.0: | 2.8.10-alt3 |
4.1: | 2.8.10-alt2.M41.1 |
4.0: | 2.7.12-alt2.M40.1 |
+backports: | 2.8.10-alt2.M40.1 |
3.0: | |
+backports: | 1.6.6a-alt0.M30.4.1 |
Group :: Publishing
RPM: hplip
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: hplip-alt-auth.patch
Download
Download
diff --git a/hplip/base/utils.py b/hplip/base/utils.py
index 25546f5c0..14db000ab 100644
--- a/hplip/base/utils.py
+++ b/hplip/base/utils.py
@@ -2610,6 +2610,11 @@ def get_distro_name(passwordObj = None):
return (name,ver)
def readAuthType():
+ (os, ver) = get_distro_name()
+ if os == 'simply':
+ return 'sudo'
+ else:
+ return 'su'
try:
import os
from grp import getgrnam