change data collect interface

This commit is contained in:
shenyafeng 2022-07-27 15:34:09 +08:00
parent 27c1df0a6b
commit 4d68d46ecc
1 changed files with 3 additions and 1 deletions

View File

@ -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)