fix: derive P2P update support from delivery repo prefix#378
Merged
electricface merged 1 commit intolinuxdeepin:develop/intranet-updatefrom Apr 18, 2026
Merged
Conversation
e1c4d49 to
7b51f53
Compare
Set P2PUpdateSupport based on whether the update repository uses the delivery:// prefix returned by the update platform. Preserve the server repository protocol when generating platform sources, and refresh P2P support after updating platform repository data. Bug: https://pms.uniontech.com/bug-view-356709.html Change-Id: If6f425b8e750349acb1b7724e1316e6c7e440bac
7b51f53 to
48f460c
Compare
qiuzhiqian
approved these changes
Apr 18, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: electricface, qiuzhiqian 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 |
deepin pr auto review代码审查报告整体评价这次代码重构主要针对平台源列表生成逻辑进行了改进,将功能从方法中解耦为独立函数,并添加了单元测试。同时增强了升级传递服务的状态管理逻辑。整体代码质量较好,但仍有改进空间。 详细审查意见1. 语法与逻辑message_report.go优点:
改进建议:
updater.go优点:
改进建议:
2. 代码质量优点:
改进建议:
3. 代码性能改进建议:
4. 代码安全优点:
改进建议:
5. 其他建议
总结这次代码重构在功能解耦和测试覆盖方面做得很好,主要改进点集中在错误处理、性能优化和安全加固上。建议在后续版本中逐步实施上述改进建议,以提高代码的健壮性和可维护性。 |
4aa4c7a
into
linuxdeepin:develop/intranet-update
13 of 17 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set P2PUpdateSupport based on whether the update repository uses the
delivery:// prefix returned by the update platform. Preserve the server
repository protocol when generating platform sources, and refresh P2P
support after updating platform repository data.
Bug: https://pms.uniontech.com/bug-view-356709.html
Change-Id: If6f425b8e750349acb1b7724e1316e6c7e440bac