Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37764793
en ru br
ALT Linux repositórios
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 :: Edição
RPM: hplip

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: hp-plugin-download-fix.patch
Download


From 27487b31562918c0c368f8aabb6449622d4eebd2 Mon Sep 17 00:00:00 2001
From: Till Kamppeter <till.kamppeter@gmail.com>
Date: Fri, 22 Jul 2016 09:33:06 +0200
Subject: Fix download and installation of HP's proprietary plug-in in Python3
 environments
LP: #1422004
Patch-Name: hp-plugin-download-fix.patch
---
 base/pkit.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/base/pkit.py b/base/pkit.py
index f3f1e44..6a848ef 100644
--- a/base/pkit.py
+++ b/base/pkit.py
@@ -35,9 +35,12 @@ import dbus
 import dbus.service
 
 if PY3:
-    from gi import _gobject as gobject
+    try:
+        from gi._gobject import MainLoop
+    except:
+        from gi.repository.GLib import MainLoop
 else:
-    import gobject
+    from gobject import MainLoop
 
 import warnings
 # Ignore: .../dbus/connection.py:242: DeprecationWarning: object.__init__() takes no parameters
@@ -207,7 +210,7 @@ if utils.to_bool(sys_conf.get('configure', 'policy-kit')):
             super(BackendService, self).__init__(connection, path)
 
             self.name = dbus.service.BusName(self.SERVICE_NAME, connection)
-            self.loop = gobject.MainLoop()
+            self.loop = MainLoop()
             self.version = 0
             log.set_level("debug")
 
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009