mirror of https://github.com/linuxdeepin/linglong
1. Add environment variable support to Cmd class for process execution 2. Set GIT_SUBMODULES=true when executing source fetch scripts 3. Conditionally execute git submodule commands based on GIT_SUBMODULES env var 4. Fix member variable naming in Cmd class (command -> m_command) 5. Pass environment variables to command existence checking process This change allows git submodules to be fetched only when explicitly enabled through the GIT_SUBMODULES environment variable, providing better control over the source fetching process. The environment variable mechanism was added to the Cmd utility class to support this feature, and existing command execution logic was updated to use proper member variable naming conventions. Log: Added conditional git submodule fetching support in source fetcher Influence: 1. Test git repository fetching with submodules enabled 2. Verify git repository fetching without submodules (default behavior) 3. Test environment variable passing in command execution 4. Verify command existence checking with environment variables 5. Test source fetching for projects with and without submodules 6. Validate that existing git fetch functionality remains unchanged feat: 通过环境变量控制启用 git 子模块获取 1. 为 Cmd 类添加环境变量支持以执行进程 2. 在执行源码获取脚本时设置 GIT_SUBMODULES=true 3. 基于 GIT_SUBMODULES 环境变量条件性执行 git 子模块命令 4. 修正 Cmd 类中的成员变量命名(command -> m_command) 5. 将环境变量传递给命令存在性检查进程 此变更允许仅在通过 GIT_SUBMODULES 环境变量明确启用时才获取 git 子模块, 从而更好地控制源码获取过程。为支持此功能,向 Cmd 工具类添加了环境变量机 制,并更新了现有命令执行逻辑以使用正确的成员变量命名约定。 Log: 在源码获取器中添加条件性 git 子模块获取支持 Influence: 1. 测试启用子模块的 git 仓库获取 2. 验证不带子模块的 git 仓库获取(默认行为) 3. 测试命令执行中的环境变量传递 4. 验证带环境变量的命令存在性检查 5. 测试带和不带子模块的项目源码获取 6. 验证现有 git 获取功能保持不变 |
||
|---|---|---|
| .. | ||
| image | ||
| lib | ||
| libexec/linglong | ||
| script | ||
| share | ||
| CMakeLists.txt | ||