mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-25 17:21:54 -07:00
hyprpm: print all dependencies that are missing (#10907)
This commit is contained in:
@@ -978,11 +978,15 @@ std::string CPluginManager::headerErrorShort(const eHeadersErrors err) {
|
||||
}
|
||||
|
||||
bool CPluginManager::hasDeps() {
|
||||
std::vector<std::string> deps = {"meson", "cpio", "cmake", "pkg-config", "g++", "gcc", "git"};
|
||||
bool hasAllDeps = true;
|
||||
std::vector<std::string> deps = {"meson", "cpio", "cmake", "pkg-config", "g++", "gcc", "git"};
|
||||
|
||||
for (auto const& d : deps) {
|
||||
if (!execAndGet("command -v " + d).contains("/"))
|
||||
return false;
|
||||
if (!execAndGet("command -v " + d).contains("/")) {
|
||||
std::println(stderr, "{}", failureString("Missing dependency: {}", d));
|
||||
hasAllDeps = false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
return hasAllDeps;
|
||||
}
|
||||
|
Reference in New Issue
Block a user