Add any-packages containing binaries as problem when checking for errors
This commit is contained in:
parent
8e18b4747f
commit
c633eea607
|
@ -468,6 +468,9 @@ void CheckForProblems::run()
|
||||||
.desc = "signature file for package \"" % package->packageInfo->fileName + "\" not present", .pkg = package->name });
|
.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;
|
return false;
|
||||||
});
|
});
|
||||||
} catch (const std::filesystem::filesystem_error &e) {
|
} catch (const std::filesystem::filesystem_error &e) {
|
||||||
|
|
Loading…
Reference in New Issue