Commit a134058
chore: update license info loading and search paths
1. Extended copyright year range from 2023 to 2023-2026
2. Added support for automatic license file discovery in standard data
locations
3. When no file path is provided, now searches for application-specific
JSON config in deepin/credits directory
4. Enhanced license content search to check both custom-licenses and
spdx-licenses directories in all standard data locations
5. Improved code organization with constants for directory names
6. Simplified license content loading logic with early returns
chore: 更新许可证信息加载和搜索路径
1. 将版权年份范围从2023年扩展到2023-2026年
2. 添加对标准数据位置中自动发现许可证文件的支持
3. 当未提供文件路径时,现在会在deepin/credits目录中搜索应用程序特定的
JSON配置
4. 增强许可证内容搜索,在所有标准数据位置中检查custom-licenses和spdx-
licenses目录
5. 使用常量优化目录名称的代码组织
6. 通过提前返回简化许可证内容加载逻辑
PMS: TASK-3878631 parent 4a1dabc commit a134058
1 file changed
Lines changed: 30 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
93 | 110 | | |
94 | 111 | | |
95 | 112 | | |
| |||
141 | 158 | | |
142 | 159 | | |
143 | 160 | | |
144 | | - | |
145 | | - | |
| 161 | + | |
| 162 | + | |
146 | 163 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
160 | 173 | | |
161 | | - | |
| 174 | + | |
162 | 175 | | |
163 | 176 | | |
164 | 177 | | |
| |||
0 commit comments