Add any-packages containing binaries as problem when checking for errors

This commit is contained in:
Martchus 2022-03-03 23:08:14 +01:00
parent 8e18b4747f
commit c633eea607
1 changed files with 3 additions and 0 deletions

View File

@ -468,6 +468,9 @@ void CheckForProblems::run()
.desc = "signature file for package \"" % package->packageInfo->fileName + "\" not present", .pkg = package->name });
}
}
if (package->packageInfo->arch == "any" && (!package->libdepends.empty() || !package->libprovides.empty())) {
problems.emplace_back(RepositoryProblem{ .desc = "\"any\"-arch package but binary present", .pkg = package->name });
}
return false;
});
} catch (const std::filesystem::filesystem_error &e) {