mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 12:30:03 +01:00
hyprpm: print all dependencies that are missing (#10907)
This commit is contained in:
parent
3c9447ca53
commit
9b51d73a1e
1 changed files with 8 additions and 4 deletions
|
|
@ -978,11 +978,15 @@ std::string CPluginManager::headerErrorShort(const eHeadersErrors err) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CPluginManager::hasDeps() {
|
bool CPluginManager::hasDeps() {
|
||||||
|
bool hasAllDeps = true;
|
||||||
std::vector<std::string> deps = {"meson", "cpio", "cmake", "pkg-config", "g++", "gcc", "git"};
|
std::vector<std::string> deps = {"meson", "cpio", "cmake", "pkg-config", "g++", "gcc", "git"};
|
||||||
|
|
||||||
for (auto const& d : deps) {
|
for (auto const& d : deps) {
|
||||||
if (!execAndGet("command -v " + d).contains("/"))
|
if (!execAndGet("command -v " + d).contains("/")) {
|
||||||
return false;
|
std::println(stderr, "{}", failureString("Missing dependency: {}", d));
|
||||||
|
hasAllDeps = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return hasAllDeps;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue