[checkpackage-backend] Pass through packages starting with "^" or containing "*"

Simply pass through packages starting with "^" or containing "*". For this
cycle we can trust our distributors won't do anything unusual, but next cycle,
we need to perform explicit validation on these items.

If you are a downstream, please be careful!
This commit is contained in:
Simon Quigley 2025-04-15 22:24:54 -05:00
parent c93e956a5e
commit f26f191a17
2 changed files with 10 additions and 0 deletions

View File

@ -33,6 +33,12 @@ int main(int argc, char* argv[]) {
for (std::string package_name : package_names) {
if (seen_packages.contains(package_name)) continue;
seen_packages.insert(package_name);
// Tasks and wildcards should just be passed through as-is, for now
if (package_name.starts_with('^') || package_name.contains('*')) {
std::cout << package_name << " ";
continue;
}
pkgCache::GrpIterator grp = cache->GetPkgCache()->FindGrp(package_name);
if (!grp.end()) {
pkgCache::PkgIterator it = grp.FindPreferredPkg(true);

4
debian/changelog vendored
View File

@ -8,6 +8,10 @@ calamares-settings-ubuntu (1:25.04.26) UNRELEASED; urgency=medium
of several, miscellaneous shell scripts wrapped in YAML.
* [pkgselectprocess] Explicitly log all apt commands in the debug logs.
* [pkgselectprocess] Ensure apt-cdrom command outputs have their own prefix.
* [checkpackage-backend] Simply pass through packages starting with "^" or
containing "*". For this cycle we can trust our distributors won't do
anything unusual, but next cycle, we need to perform explicit validation
on these items. If you are a downstream, please be careful.
-- Simon Quigley <tsimonq2@ubuntu.com> Tue, 15 Apr 2025 22:15:17 -0500