Merge branch 'backend_manual' into 'backend_uu'

Backend manual

See merge request kylin-desktop/update-manager-group/kylin-system-updater!469
This commit is contained in:
luoxueyi 2022-08-05 08:59:13 +00:00
commit 4775bc46f5
4 changed files with 7 additions and 3 deletions

View File

@ -253,6 +253,7 @@ class OriginProperty():
def analytic_properties(self, local_sourcelist):
http_origin = {"component":[],"release":{}}
ftp_orgin = {"component":[],"release":{}}
dist_list = []
# 经过解析后的本地源,获取所有的分发属性
for ls in local_sourcelist['http']:
for item in filter(not_empty, ls['sources'].split(' ')):
@ -261,7 +262,9 @@ class OriginProperty():
elif "http" in item:
http_origin['origin_source'] = item
elif "/" in item:
http_origin['dist'] = item.split("/")[0]
dist_list = item.split("/")
dist_list.pop()
http_origin['dist'] = "/".join(dist_list)
http_origin['component'].append(item.split("/")[1])
elif item not in ARCHITECTUREMAP and item != "Packages":
http_origin['component'].append(item)

Binary file not shown.

View File

@ -2639,10 +2639,10 @@ msgid "Check for update exceptions,fix system APT environment error."
msgstr "检查更新异常修复系统APT环境出现错误。"
msgid "The system APT environment is abnormal, please check the system APT environment."
msgstr "系统APT环境异常请检查系统APT环境。"
msgstr "修复系统APT环境异常请检查系统APT环境。"
msgid "Priority upgrade status exception."
msgstr "优先升级异常。"
msgstr "优先升级状态异常。"
msgid "Upgrade configuration acquisition exception."
msgstr "升级配置获取异常。"

View File

@ -19,6 +19,7 @@ cp /etc/apt/sources.list updaterlog || true
cp -r /etc/apt/sources.list.d/ updaterlog || true
cp -r /etc/apt/apt.conf.d/ updaterlog || true
cp -r /usr/share/kylin-update-desktop-config/config/ updaterlog || true
#复制后端的日志
cp -r /var/log/kylin-system-updater/ updaterlog || true