| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
metadata-generator: fix parse target version string error The parse_target_string function had incorrect logic for parsing package version strings in the format 'name-epoch:version-release'. Problem: - Previously split the string as: release, version, name_epoch - Incorrectly tried to extract epoch from the name part - This caused epoch information to be lost when it was embedded in the version string (e.g., 'bash-2:5.1.8-3') Solution: - Correctly split the string as: release, ver_with_epoch, name - Extract epoch from the version part using split_once - Use unwrap_or to handle cases where epoch is not present - Return epoch as "(none)" when not specified Changes: - Renamed variables to better reflect their purpose - Fixed the order of returned tuple values - Improved handling of epoch separator ':' Test cases verified: - Basic format: 'nginx-1.18.0-1' -> (nginx, (none), 1.18.0, 1) - With epoch: 'bash-2:5.1.8-3' -> (bash, 2, 5.1.8, 3) - Complex version: 'kernel-5.14.0-123.oe2403sp2' Signed-off-by: eshiner <zengfuliangjx@sina.cn> | 5 个月前 | |
metadata-generator: add component Signed-off-by: renoseven <dev@renoseven.net> | 1 年前 | |
metadata-generator: add component Signed-off-by: renoseven <dev@renoseven.net> | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 5 个月前 | ||
| 1 年前 | ||
| 1 年前 |