change data collect interface
This commit is contained in:
parent
27c1df0a6b
commit
4d68d46ecc
|
@ -452,13 +452,15 @@ class KylinSystemUpdater:
|
|||
self.loop = GLib.MainLoop()
|
||||
self.system_bus = dbus.SystemBus()
|
||||
self.update_proxy = self.system_bus.get_object('com.kylin.systemupgrade','/com/kylin/systemupgrade')
|
||||
self.data_collect_proxy = self.system_bus.get_object('com.kylin.systemupgrade','/com/kylin/systemupgrade/utils')
|
||||
self.data_collect_interface = dbus.Interface(self.data_collect_proxy,dbus_interface='com.kylin.systemupgrade.interface')
|
||||
self.update_interface = dbus.Interface(self.update_proxy,dbus_interface='com.kylin.systemupgrade.interface')
|
||||
self.success = False
|
||||
self.whitelist_with_candidate_version = []
|
||||
|
||||
|
||||
def DataBackendCollect(self,updateinfo,json_file):
|
||||
self.update_interface.DataBackendCollect(updateinfo,json_file)
|
||||
self.data_collect_interface.DataBackendCollect(updateinfo,json_file)
|
||||
|
||||
def GetConfigValue(self,section,value):
|
||||
return self.update_interface.GetConfigValue(section,value)
|
||||
|
|
Loading…
Reference in New Issue