From 51fb8686abc24aa7673252a6445fd0ecf17b3351 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 6 Dec 2023 19:28:40 +0000 Subject: use repo name from manifest if available --- hyprpm/src/core/PluginManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyprpm/src/core/PluginManager.cpp b/hyprpm/src/core/PluginManager.cpp index af946785..46b6db23 100644 --- a/hyprpm/src/core/PluginManager.cpp +++ b/hyprpm/src/core/PluginManager.cpp @@ -162,7 +162,7 @@ bool CPluginManager::addNewPluginRepo(const std::string& url) { std::string repohash = execAndGet("cd /tmp/hyprpm/new/ && git rev-parse HEAD"); if (repohash.length() > 0) repohash.pop_back(); - repo.name = url.substr(url.find_last_of('/') + 1); + repo.name = pManifest->m_sRepository.name.empty() ? url.substr(url.find_last_of('/') + 1) : pManifest->m_sRepository.name; repo.url = url; repo.hash = repohash; for (auto& p : pManifest->m_vPlugins) { -- cgit v1.2.3