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 862822 Details for
Bug 1064923
hide-confirm-search does not work when installing packages using the dbus API of packagekit from python
[?]
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.
pkginstall.py
pkginstall.py (text/x-python), 1.38 KB, created by
Mike FABIAN
on 2014-02-13 14:51:16 UTC
(
hide
)
Description:
pkginstall.py
Filename:
MIME Type:
Creator:
Mike FABIAN
Created:
2014-02-13 14:51:16 UTC
Size:
1.38 KB
patch
obsolete
>import gi >from gi.repository import Gio, GLib > >class InstallPkg(object): > def __init__(self,pkg): > bus_type = Gio.BusType.SESSION > flags = 0 > iface_info = None > # Creating proxies does not do any blocking I/O, and never fails > proxy = Gio.DBusProxy.new_for_bus_sync( > bus_type, > flags, > iface_info, > 'org.freedesktop.PackageKit', > '/org/freedesktop/PackageKit', > 'org.freedesktop.PackageKit.Modify', > None) > try: > # The default timeout is approximately 25 seconds. > # This is too short here, the call to InstallPackageNames > # would usually return too early then before the package > # has completed installing. Then the callback to reload > # the dictionary would be called to early and would not > # be able to load the dictionary. > # So I use a very long timeout here to make sure > # InstallPackageNames does not return before either the > # dictionary is really installed or the user cancels: > proxy.set_default_timeout(0x7fffffff) # timeout in milliseconds > proxy.InstallPackageNames("(uass)", 0, [pkg], "hide-confirm-search,hide-finished") > except GLib.GError as e: > print("GError: " + str(e)) > >if __name__ == '__main__': > InstallPkg('pyhunspell')
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 Raw
Actions:
View
Attachments on
bug 1064923
: 862822