Development headers for the QApt library
| Files | Last commit | Last update |
|---|---|---|
新增自动构建 Signed-off-by: gfdgd_xi <3025613752@qq.com> | 4 months ago | |
feat: Init commit init libqapt Log: | 4 years ago | |
feat: Init commit init libqapt Log: | 4 years ago | |
修复 pkg-config 调用时无法找到正常 include 文件夹的问题 Signed-off-by: gfdgd_xi <3025613752@qq.com> | 4 months ago | |
feat: Init commit init libqapt Log: | 4 years ago | |
feat: Init commit init libqapt Log: | 4 years ago | |
feat: add reverse provides lookup methods Add reverse provides query functionality to Package class with two new methods: 1. reverseProvidesList(): Returns QStringList of package names that provide this virtual package by iterating over pkgCache::PrvIterator 2. reverseProvidesListEnhance(): Returns QMap<QString, QString> mapping provider names to their provide versions using ProvideVersion() These methods utilize the APT cache's ProvidesList via d->packageIter.ProvidesList() to traverse all packages declaring they provide this package, accessing OwnerPkg() for provider identification. This enables applications to resolve which concrete packages satisfy virtual package dependencies, completing the provides relationship API alongside existing providesList() methods. Also includes minor whitespace cleanup in header documentation and updates .gitignore to exclude AI assistant configuration files (.claude, AGENTS.md, .trellis). Influence: 1. Test reverseProvidesList() with virtual packages having multiple concrete providers 2. Test reverseProvidesListEnhance() returns correct provider-to-version mappings 3. Verify empty list/map returned for packages with no providers 4. Test with complex virtual packages that have version-specific provides 5. Verify iterator correctly handles all entries in ProvidesList without missing providers 6. Test behavior with both installed and available (not installed) packages feat: 添加反向提供查询方法 向 Package 类添加反向提供查询功能,包含两个新方法: 1. reverseProvidesList():通过遍历 pkgCache::PrvIterator 返回提供此虚拟 软件包的软件包名称列表 2. reverseProvidesListEnhance():使用 ProvideVersion() 返回将提供者名称 映射到其提供版本的 QMap<QString, QString> 这些方法通过 d->packageIter.ProvidesList() 利用 APT 缓存的 ProvidesList 遍历所有声明提供此软件包的软件包,通过 OwnerPkg() 获取提供者标识。 这使应用程序能够解析哪些具体软件包满足虚拟软件包依赖关系,与现有的 providesList() 方法一起完善了提供关系 API。 同时包含对头文件文档的轻微空白清理,并更新 .gitignore 以排除 AI 助手配置 文件(.claude、AGENTS.md、.trellis)。 Influence: 1. 测试 reverseProvidesList() 在有多个具体提供者的虚拟软件包上的表现 2. 测试 reverseProvidesListEnhance() 返回正确的提供者到版本映射 3. 验证没有提供者的软件包返回空列表/映射 4. 测试具有版本特定提供的复杂虚拟软件包 5. 验证迭代器正确处理 ProvidesList 中的所有条目,不遗漏提供者 6. 测试对已安装和可用(未安装)软件包的行为表现 BUG: https://pms.uniontech.com/bug-view-358267.html | 6 months ago | |
chore: [log]More logs. Add more logs for log coverage. Log: Add more logs. | 1 year ago | |
feat: Init commit init libqapt Log: | 4 years ago | |
feat: add reverse provides lookup methods Add reverse provides query functionality to Package class with two new methods: 1. reverseProvidesList(): Returns QStringList of package names that provide this virtual package by iterating over pkgCache::PrvIterator 2. reverseProvidesListEnhance(): Returns QMap<QString, QString> mapping provider names to their provide versions using ProvideVersion() These methods utilize the APT cache's ProvidesList via d->packageIter.ProvidesList() to traverse all packages declaring they provide this package, accessing OwnerPkg() for provider identification. This enables applications to resolve which concrete packages satisfy virtual package dependencies, completing the provides relationship API alongside existing providesList() methods. Also includes minor whitespace cleanup in header documentation and updates .gitignore to exclude AI assistant configuration files (.claude, AGENTS.md, .trellis). Influence: 1. Test reverseProvidesList() with virtual packages having multiple concrete providers 2. Test reverseProvidesListEnhance() returns correct provider-to-version mappings 3. Verify empty list/map returned for packages with no providers 4. Test with complex virtual packages that have version-specific provides 5. Verify iterator correctly handles all entries in ProvidesList without missing providers 6. Test behavior with both installed and available (not installed) packages feat: 添加反向提供查询方法 向 Package 类添加反向提供查询功能,包含两个新方法: 1. reverseProvidesList():通过遍历 pkgCache::PrvIterator 返回提供此虚拟 软件包的软件包名称列表 2. reverseProvidesListEnhance():使用 ProvideVersion() 返回将提供者名称 映射到其提供版本的 QMap<QString, QString> 这些方法通过 d->packageIter.ProvidesList() 利用 APT 缓存的 ProvidesList 遍历所有声明提供此软件包的软件包,通过 OwnerPkg() 获取提供者标识。 这使应用程序能够解析哪些具体软件包满足虚拟软件包依赖关系,与现有的 providesList() 方法一起完善了提供关系 API。 同时包含对头文件文档的轻微空白清理,并更新 .gitignore 以排除 AI 助手配置 文件(.claude、AGENTS.md、.trellis)。 Influence: 1. 测试 reverseProvidesList() 在有多个具体提供者的虚拟软件包上的表现 2. 测试 reverseProvidesListEnhance() 返回正确的提供者到版本映射 3. 验证没有提供者的软件包返回空列表/映射 4. 测试具有版本特定提供的复杂虚拟软件包 5. 验证迭代器正确处理 ProvidesList 中的所有条目,不遗漏提供者 6. 测试对已安装和可用(未安装)软件包的行为表现 BUG: https://pms.uniontech.com/bug-view-358267.html | 6 months ago | |
feat: Init commit init libqapt Log: | 4 years ago | |
修复编译问题 Signed-off-by: gfdgd_xi <3025613752@qq.com> | 4 months ago | |
feat: Init commit init libqapt Log: | 4 years ago | |
feat: Init commit init libqapt Log: | 4 years ago | |
feat: Init commit init libqapt Log: | 4 years ago | |
feat: Init commit init libqapt Log: | 4 years ago | |
feat: Init commit init libqapt Log: | 4 years ago | |
fix: Fix build and rename targets Rename the targets as qapt-qt6 and change the header dir in order to avoid conflict with qapt. Log: Fix build and rename targets. | 1 year ago | |
feat: Init commit init libqapt Log: | 4 years ago | |
feat: Init commit init libqapt Log: | 4 years ago | |
修复 pkg-config 调用时无法找到正常 include 文件夹的问题 Signed-off-by: gfdgd_xi <3025613752@qq.com> | 4 months ago | |
feat: Init commit init libqapt Log: | 4 years ago |
Project README is empty