aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-03-19 22:12:26 +0000
committerVaxry <[email protected]>2024-03-19 22:12:55 +0000
commit07ab3b8cd654561ba346e40e16d44e918afa0ba0 (patch)
treeb3904dc785af441b6b679ec5b0650f2be39638d7
parent05cd6d3df1e5faf3f7476724b0cfb156f4be43f6 (diff)
downloadHyprland-07ab3b8cd654561ba346e40e16d44e918afa0ba0.tar.gz
Hyprland-07ab3b8cd654561ba346e40e16d44e918afa0ba0.zip
hyprpm: log shell in build without fails
-rw-r--r--hyprpm/src/core/PluginManager.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/hyprpm/src/core/PluginManager.cpp b/hyprpm/src/core/PluginManager.cpp
index 725e6a93..c5926c3e 100644
--- a/hyprpm/src/core/PluginManager.cpp
+++ b/hyprpm/src/core/PluginManager.cpp
@@ -221,12 +221,12 @@ bool CPluginManager::addNewPluginRepo(const std::string& url, const std::string&
out += " -> " + cmd + "\n" + execAndGet(cmd) + "\n";
}
+ if (m_bVerbose)
+ std::cout << Colors::BLUE << "[v] " << Colors::RESET << "shell returned: " << out << "\n";
+
if (!std::filesystem::exists("/tmp/hyprpm/new/" + p.output)) {
progress.printMessageAbove(std::string{Colors::RED} + "✖" + Colors::RESET + " Plugin " + p.name + " failed to build.\n");
- if (m_bVerbose)
- std::cout << Colors::BLUE << "[v] " << Colors::RESET << "shell returned: " << out << "\n";
-
p.failed = true;
continue;
@@ -582,11 +582,12 @@ bool CPluginManager::updatePlugins(bool forceUpdateAll) {
out += " -> " + cmd + "\n" + execAndGet(cmd) + "\n";
}
+ if (m_bVerbose)
+ std::cout << Colors::BLUE << "[v] " << Colors::RESET << "shell returned: " << out << "\n";
+
if (!std::filesystem::exists("/tmp/hyprpm/update/" + p.output)) {
std::cerr << "\n" << Colors::RED << "✖" << Colors::RESET << " Plugin " << p.name << " failed to build.\n";
failed = true;
- if (m_bVerbose)
- std::cout << Colors::BLUE << "[v] " << Colors::RESET << "shell returned: " << out << "\n";
break;
}