swt/dev updateplatform#290
Conversation
electricface
commented
Jan 19, 2026
- fix: check display-manager.service instead of lightdm (fix: check display-manager.service instead of lightdm #286)
- chore: bump version to 6.2.45 (chore: bump version to 6.2.45 #287)
- feat: Add gatherinfo and posthardware commands to lastore-tools
- feat(updateplatform): Add Helper support for machineID retrieval and policy check interval configuration
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: electricface The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
and policy check interval configuration - Added CheckPolicyInterval and GetHardwareIdByHelper fields to the configuration structure; - Added SetCheckPolicyInterval and SetStartCheckRange methods to support dynamic adjustment of policy check configurations; - Updated UpdatePlatformManager to support retrieving the machineID via Helper, and added task ID management and event reporting capabilities; - Implemented the UpdateSourceList method for maintaining private repository source files; - Modified the hardware ID retrieval logic to add functionality for obtaining the hardware ID via the DBus sync helper; - Updated the Token configuration file generation logic to support the new hardware ID retrieval method; - Synchronized Token generation updates in the GatherInfo and CheckPolicy tools to ensure authentication consistency; - Added read/write methods for the cached task ID file to ensure task information persistence and reading accuracy. Task: https://pms.uniontech.com/task-view-385321.html
5f3fb85 to
8a3fa01
Compare
deepin pr auto review这份代码 diff 主要涉及系统更新平台(UpdatePlatform)的功能增强,包括从外部 helper 获取硬件 ID、任务 ID 管理、更新过程事件上报以及私有化版本的配置调整。以下是从语法逻辑、代码质量、代码性能和代码安全四个方面的审查意见: 1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
总结这段代码整体结构清晰,功能扩展(如通过 Helper 获取 ID、私有化适配、事件上报)逻辑基本正确。主要改进点在于:
代码中对于 |