feat: add Debian trigger integration for config updates#110
feat: add Debian trigger integration for config updates#11018202781743 wants to merge 1 commit intolinuxdeepin:masterfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743 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 |
|
Warning
|
There was a problem hiding this comment.
Hey @18202781743 - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
1. Added dconfig-trigger-handler script to process configuration file changes via D-Bus 2. Implemented Debian trigger system to monitor config directories (/ usr/share/dsg/configs, /etc/dsg/configs, /var/lib/linglong entries) 3. Created postinst script to handle trigger activation and timestamp management 4. Added documentation explaining the trigger integration process and usage 5. Updated CMakeLists and install files to deploy the trigger handler 6. The changes enable automatic configuration updates when package installations modify config files feat: 添加 Debian 触发器集成以支持配置自动更新 1. 新增 dconfig-trigger-handler 脚本通过 D-Bus 处理配置文件变更 2. 实现 Debian 触发器系统监控配置目录(/usr/share/dsg/configs, /etc/dsg/ configs, /var/lib/linglong 条目) 3. 创建 postinst 脚本处理触发器激活和时间戳管理 4. 添加文档说明触发器集成流程和使用方法 5. 更新 CMakeLists 和安装文件以部署触发器处理程序 6. 这些变更使得在包安装修改配置文件时能够自动更新配置
Reviewer's GuideThis PR integrates a Debian-triggered, D-Bus-based configuration update mechanism by introducing a handler script, defining package triggers and post-install hooks, updating the build/install pipeline, and providing documentation for the new workflow. Sequence diagram for Debian trigger-based config update processsequenceDiagram
participant DebianPkg as Debian Package System
participant Trigger as dconfig-trigger-handler
participant DConfigDaemon as dde-dconfig-daemon (D-Bus)
participant ConfigDirs as Config Directories
DebianPkg->>ConfigDirs: Install/modify config files
ConfigDirs-->>DebianPkg: Triggers activated (via .triggers)
DebianPkg->>Trigger: Run dconfig-trigger-handler (via postinst)
Trigger->>DConfigDaemon: Notify config change via D-Bus
DConfigDaemon->>DConfigDaemon: Reload/Update configuration
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Warning
|
deepin pr auto review代码审查意见:
|
feat: 添加 Debian 触发器集成以支持配置自动更新
Summary by Sourcery
Integrate Debian trigger support for dconfig by adding a handler script, packaging hooks, and documentation to enable automatic configuration updates
New Features:
Build:
Deployment:
Documentation: