diff options
author | Vaxry <[email protected]> | 2024-04-05 03:00:34 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-04-05 03:00:34 +0100 |
commit | 12d75c0c26f7801699c20952eccce4ef5cf1084b (patch) | |
tree | bc43b692a53cde5ee82ad90cb5e7d400256fdda0 /hyprpm | |
parent | 1ae592fcd94b86c4fee6b91786dfdc78724930fe (diff) | |
download | Hyprland-12d75c0c26f7801699c20952eccce4ef5cf1084b.tar.gz Hyprland-12d75c0c26f7801699c20952eccce4ef5cf1084b.zip |
hyprpm: ignore version checks for shallow clones
Diffstat (limited to 'hyprpm')
-rw-r--r-- | hyprpm/src/core/PluginManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hyprpm/src/core/PluginManager.cpp b/hyprpm/src/core/PluginManager.cpp index 64b87379..0677fa39 100644 --- a/hyprpm/src/core/PluginManager.cpp +++ b/hyprpm/src/core/PluginManager.cpp @@ -226,7 +226,7 @@ bool CPluginManager::addNewPluginRepo(const std::string& url, const std::string& for (auto& p : pManifest->m_vPlugins) { std::string out; - if (p.since > HLVER.commits) { + if (p.since > HLVER.commits && HLVER.commits >= 1 /* for --depth 1 clones, we can't check this. */) { progress.printMessageAbove(std::string{Colors::RED} + "✖" + Colors::RESET + " Not building " + p.name + ": your Hyprland version is too old.\n"); p.failed = true; continue; @@ -599,7 +599,7 @@ bool CPluginManager::updatePlugins(bool forceUpdateAll) { for (auto& p : pManifest->m_vPlugins) { std::string out; - if (p.since > HLVER.commits) { + if (p.since > HLVER.commits && HLVER.commits >= 1 /* for --depth 1 clones, we can't check this. */) { progress.printMessageAbove(std::string{Colors::RED} + "✖" + Colors::RESET + " Not building " + p.name + ": your Hyprland version is too old.\n"); p.failed = true; continue; |