mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-08 23:23:23 -06:00
asyncjob: Rename function that collides with gtk method
This commit is contained in:
parent
baf531f710
commit
b8f1bbd3de
@ -212,9 +212,9 @@ class vmmAsyncJob(vmmGObjectUI):
|
|||||||
return (None, None)
|
return (None, None)
|
||||||
return self._error_info
|
return self._error_info
|
||||||
|
|
||||||
def set_data(self, data):
|
def set_extra_data(self, data):
|
||||||
self._data = data
|
self._data = data
|
||||||
def get_data(self):
|
def get_extra_data(self):
|
||||||
return self._data
|
return self._data
|
||||||
|
|
||||||
def get_meter(self):
|
def get_meter(self):
|
||||||
|
@ -68,7 +68,7 @@ def check_packagekit(errbox, packages, ishv):
|
|||||||
if error:
|
if error:
|
||||||
return
|
return
|
||||||
|
|
||||||
found = progWin.get_data()
|
found = progWin.get_extra_data()
|
||||||
|
|
||||||
not_found = [x for x in packages if x not in found]
|
not_found = [x for x in packages if x not in found]
|
||||||
logging.debug("Missing packages: %s", not_found)
|
logging.debug("Missing packages: %s", not_found)
|
||||||
@ -120,7 +120,7 @@ def _do_async_search(asyncjob, session, pk_control, packages):
|
|||||||
logging.exception("Error searching for installed packages")
|
logging.exception("Error searching for installed packages")
|
||||||
asyncjob.set_error(str(e), "".join(traceback.format_exc()))
|
asyncjob.set_error(str(e), "".join(traceback.format_exc()))
|
||||||
|
|
||||||
asyncjob.set_data(found)
|
asyncjob.set_extra_data(found)
|
||||||
|
|
||||||
def packagekit_install(package_list):
|
def packagekit_install(package_list):
|
||||||
session = dbus.SessionBus()
|
session = dbus.SessionBus()
|
||||||
|
Loading…
Reference in New Issue
Block a user