object_name has application's name
This commit is contained in:
+1
-1
@@ -175,7 +175,7 @@ Index: comariface.py
|
|||||||
- wait_for_result(com)
|
- wait_for_result(com)
|
||||||
+ if "System.Package" in sys_iface.listApplicationModels(object_name):
|
+ if "System.Package" in sys_iface.listApplicationModels(object_name):
|
||||||
+ ctx.ui.debug(_("Running package's pre remove script"))
|
+ ctx.ui.debug(_("Running package's pre remove script"))
|
||||||
+ iface = get_iface(handler_application, "System.PackageHandler")
|
+ iface = get_iface(object_name, "System.PackageHandler")
|
||||||
+ try:
|
+ try:
|
||||||
+ iface.preRemove()
|
+ iface.preRemove()
|
||||||
+ except dbus.DBusException, exception:
|
+ except dbus.DBusException, exception:
|
||||||
|
|||||||
Reference in New Issue
Block a user