Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 619443 Details for
Bug 812938
packagekit sleeps for ten minutes holding yum lock
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
[PATCH] yum-plugin: Ask PackageKit to quit when yum is started
0001-yum-plugin-Ask-PackageKit-to-quit-when-yum-is-starte.patch (text/plain), 2.05 KB, created by
Elad Alfassa
on 2012-09-30 14:19:11 UTC
(
hide
)
Description:
[PATCH] yum-plugin: Ask PackageKit to quit when yum is started
Filename:
MIME Type:
Creator:
Elad Alfassa
Created:
2012-09-30 14:19:11 UTC
Size:
2.05 KB
patch
obsolete
>From 9b573d5367b5a2d46de2e69f180b96c158a1a7f7 Mon Sep 17 00:00:00 2001 >From: Elad Alfassa <elad@fedoraproject.org> >Date: Sun, 30 Sep 2012 15:57:34 +0200 >Subject: [PATCH] yum-plugin: Ask PackageKit to quit when yum is started > >This is so PackageKit will release the yum lock quickly if it is locked by it, >so that having PackageKit searching for updates regularly won't disturb cli >interaction with yum. > >See https://plus.google.com/u/0/110933625728671692704/posts/jUTTvCmYKiM >for more information >--- > contrib/yum-packagekit/refresh-packagekit.py | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > >diff --git a/contrib/yum-packagekit/refresh-packagekit.py b/contrib/yum-packagekit/refresh-packagekit.py >index b440539..dbf3c7c 100644 >--- a/contrib/yum-packagekit/refresh-packagekit.py >+++ b/contrib/yum-packagekit/refresh-packagekit.py >@@ -1,6 +1,7 @@ > # A plugin for yum which notifies PackageKit to refresh its data > # > # Copyright (c) 2007 James Bowes <jbowes@redhat.com> >+# Copyright (c) 2012 Elad Alfassa <elad@fedoraproject.org> > # > # This program is free software; you can redistribute it and/or modify > # it under the terms of the GNU General Public License as published by >@@ -39,3 +40,22 @@ def posttrans_hook(conduit): > conduit.info(2, "Unable to send message to PackageKit") > conduit.info(6, "%s" %(e,)) > >+def init_hook(conduit): >+ """ >+ Tell PackageKit to exit when we start yum, so it won't block command-line operations. >+ """ >+ try: >+ bus = dbus.SystemBus() >+ except dbus.DBusException, e: >+ conduit.info(2, "Unable to connect to dbus") >+ conduit.info(6, "%s" %(e,)) >+ return >+ try: >+ packagekit_proxy = bus.get_object('org.freedesktop.PackageKit', >+ '/org/freedesktop/PackageKit') >+ packagekit_iface = dbus.Interface(packagekit_proxy, 'org.freedesktop.PackageKit') >+ packagekit_iface.SuggestDaemonQuit() >+ except Exception, e: >+ conduit.info(2, "Unable to send message to PackageKit") >+ conduit.info(6, "%s" %(e,)) >+ >-- >1.7.12.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 812938
:
577747
| 619443