Manager: Drop 'which' package dependency
This commit is contained in:
+1
-2
@@ -199,10 +199,9 @@ bool Package::distroDependencies()
|
|||||||
dependencies.push_back({ "dpkg-query", "dpkg" });
|
dependencies.push_back({ "dpkg-query", "dpkg" });
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: Conglomerate which calls to save multiple external process creation.
|
|
||||||
Util::System $;
|
Util::System $;
|
||||||
for (const auto& dependency : dependencies) {
|
for (const auto& dependency : dependencies) {
|
||||||
if ($("which " + dependency.at(0))().status() > 0) {
|
if (!findDependency(dependency.at(0))) {
|
||||||
fprintf(stderr, "\033[31;1mPackage:\033[0m required dependency '%s' is missing\n", dependency.at(1).c_str());
|
fprintf(stderr, "\033[31;1mPackage:\033[0m required dependency '%s' is missing\n", dependency.at(1).c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user