diff options
author | Vaxry <[email protected]> | 2023-12-06 19:28:40 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2023-12-06 23:31:04 +0000 |
commit | 51fb8686abc24aa7673252a6445fd0ecf17b3351 (patch) | |
tree | bd186681e758c9d5558bc2f845ffc310dcab2b60 | |
parent | 148ea1673272c2a34bcfe0437fecf09844a03a53 (diff) | |
download | Hyprland-51fb8686abc24aa7673252a6445fd0ecf17b3351.tar.gz Hyprland-51fb8686abc24aa7673252a6445fd0ecf17b3351.zip |
use repo name from manifest if available
-rw-r--r-- | hyprpm/src/core/PluginManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |