diff options
author | Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> | 2024-01-11 14:13:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-11 08:13:13 -0500 |
commit | 7e814da5c93f2afb4a77015d1b758ef295dd5ca4 (patch) | |
tree | 544adb42f6fa3a282e1844d2d92c68298dc2f8ab | |
parent | 7d8dff3a3030cc4c2a3a0deb315f6395ebb80560 (diff) | |
download | spack-7e814da5c93f2afb4a77015d1b758ef295dd5ca4.tar.gz spack-7e814da5c93f2afb4a77015d1b758ef295dd5ca4.tar.bz2 spack-7e814da5c93f2afb4a77015d1b758ef295dd5ca4.tar.xz spack-7e814da5c93f2afb4a77015d1b758ef295dd5ca4.zip |
googletest: Fix url_for_version (#42027)
-rw-r--r-- | var/spack/repos/builtin/packages/googletest/package.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/googletest/package.py b/var/spack/repos/builtin/packages/googletest/package.py index 175fff38ad..f1b1424f73 100644 --- a/var/spack/repos/builtin/packages/googletest/package.py +++ b/var/spack/repos/builtin/packages/googletest/package.py @@ -10,7 +10,7 @@ class Googletest(CMakePackage): """Google test framework for C++. Also called gtest.""" homepage = "https://github.com/google/googletest" - url = "https://github.com/google/googletest/archive/release-1.10.0.tar.gz" + url = "https://github.com/google/googletest/archive/refs/tags/v1.14.0.tar.gz" git = "https://github.com/google/googletest" maintainers("sethrj") @@ -85,11 +85,11 @@ class Googletest(CMakePackage): while versions up to, and including, 1.8.0 are available only from `archive/release-<version>.tar.gz` """ - if version.satisfies("@:1.8.0"): + if version <= Version("1.8.0"): return f"{self.git}/archive/release-{version}.tar.gz" tagname = f"release-{version}" - if version.satisfies("@1.13:"): + if version >= Version("1.13"): tagname = f"v{version}" return f"{self.git}/archive/refs/tags/{tagname}.tar.gz" |