tamiko 15/01/01 10:36:02 Added: virt-manager-1.1.0-optional_avahi.patch Log: supress an error message in case avahi is not installed, bug #532328 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key BD3A97A3)
Revision Changes Path 1.1 app-emulation/virt-manager/files/virt-manager-1.1.0-optional_avahi.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virt-manager/files/virt-manager-1.1.0-optional_avahi.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virt-manager/files/virt-manager-1.1.0-optional_avahi.patch?rev=1.1&content-type=text/plain Index: virt-manager-1.1.0-optional_avahi.patch =================================================================== diff --git a/virtManager/connect.py b/virtManager/connect.py index f7f268e..c19c224 100644 --- a/virtManager/connect.py +++ b/virtManager/connect.py @@ -95,7 +95,10 @@ class vmmConnect(vmmGObjectUI): self.avahiserver = Gio.DBusProxy.new_sync(self.dbus, 0, None, "org.freedesktop.Avahi", "/", "org.freedesktop.Avahi.Server", None) + self.avahiserver.GetVersionString() + logging.debug("self.avahiserver=%s", self.avahiserver) except Exception, e: + self.avahiserver = None logging.debug("Couldn't contact avahi: %s", str(e)) self.reset_state()