summaryrefslogtreecommitdiff
path: root/hyprpm/src/core/PluginManager.cpp
diff options
context:
space:
mode:
authorbobrat <81044320+bruhman325@users.noreply.github.com>2025-07-04 07:43:46 -0500
committerGitHub <noreply@github.com>2025-07-04 14:43:46 +0200
commit9b51d73a1e22c86e8d6ec78750e622da9242e32f (patch)
treee3b2c9130b044fe62a2a1917c80b76a05d292147 /hyprpm/src/core/PluginManager.cpp
parent3c9447ca53f76abd1372bca5749c9ef701fb76c0 (diff)
hyprpm: print all dependencies that are missing (#10907)
Diffstat (limited to 'hyprpm/src/core/PluginManager.cpp')
-rw-r--r--hyprpm/src/core/PluginManager.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/hyprpm/src/core/PluginManager.cpp b/hyprpm/src/core/PluginManager.cpp
index b7316fdb..938b08b2 100644
--- a/hyprpm/src/core/PluginManager.cpp
+++ b/hyprpm/src/core/PluginManager.cpp
@@ -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;
}