From bf2f976cf0d0b3c8ee0f1d891a9c6b9de8993499 Mon Sep 17 00:00:00 2001 From: wangsong Date: Sun, 26 Sep 2021 10:33:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=BB=E4=B8=8B=E8=BD=BD=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E6=94=B9=E6=88=90=E5=AD=97=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UpdateManager/Core/UpdateList.py | 2 +- UpdateManager/UpdateManager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UpdateManager/Core/UpdateList.py b/UpdateManager/Core/UpdateList.py index 73c88ee..dea7d95 100644 --- a/UpdateManager/Core/UpdateList.py +++ b/UpdateManager/Core/UpdateList.py @@ -523,7 +523,7 @@ class UpdateList(): except Exception as e: logging.info("this package(%s) not in list and error mes:%s",pkg_name,e) pass - pkgs_info_json.update({"total_size":humanize_size(total_size)}) + pkgs_info_json.update({"total_size":total_size}) return pkgs_info_json #检查包是否在cache中 返回新得列表 diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index 33409b4..13b2e14 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -242,7 +242,7 @@ class UpdateManager(): #FIXME: 5、 待开发功能 根据监测存在配置文件 不存在进行重新安装包 再检测还是未存在的话 就判断此次没有可升级的 #FIXME: 6、 出错后未进行处理 更新important.list 文件错误的话 - # self.dbusController._on_update_important_list() + self.dbusController._on_update_important_list() try: _success,header,desc = self.update_list.update(self.cache)