Set DBus timeout for setupPackage calls

This commit is contained in:
Gökmen Göksel
2009-05-07 20:20:36 +00:00
parent 99e8da8b18
commit 5ca948ebfb
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -1,3 +1,6 @@
2009-05-07 Bahadır Kandemir <bahadir@pardus.org.tr>
* Set DBus timeout for setupPackage calls.
2009-05-05 Bahadır Kandemir <bahadir@pardus.org.tr>
* Increase DBus timeout
* Always set COMAR client locale
+1 -1
View File
@@ -121,7 +121,7 @@ def post_install(package_name, provided_scripts, scriptpath, metapath, filepath,
ctx.ui.debug(_("Calling post install handlers"))
for handler in link.System.PackageHandler:
try:
link.System.PackageHandler[handler].setupPackage(metapath, filepath)
link.System.PackageHandler[handler].setupPackage(metapath, filepath, timeout=ctx.dbus_timeout)
except dbus.DBusException, exception:
# Do nothing if setupPackage method is not defined in package script
if not is_method_missing(exception):