summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGavin John <gavinnjohn@gmail.com>2024-08-06 09:54:01 +0100
committerGitHub <noreply@github.com>2024-08-06 02:54:01 -0600
commite3904d4cbf63645228278209a12f534719c705cd (patch)
tree930aca35c6cb3c8c345a8feba437a40a7148710d /lib
parente1bcbcf9f3d5e3e259577e15980e5792da73106c (diff)
downloadspack-e3904d4cbf63645228278209a12f534719c705cd.tar.gz
spack-e3904d4cbf63645228278209a12f534719c705cd.tar.bz2
spack-e3904d4cbf63645228278209a12f534719c705cd.tar.xz
spack-e3904d4cbf63645228278209a12f534719c705cd.zip
Fix spack url stats (#45584)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/url.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/url.py b/lib/spack/spack/cmd/url.py
index 38dd6a4aeb..cb151b26d9 100644
--- a/lib/spack/spack/cmd/url.py
+++ b/lib/spack/spack/cmd/url.py
@@ -339,7 +339,7 @@ def url_stats(args):
for pkg_cls in spack.repo.PATH.all_package_classes():
npkgs += 1
- for v in pkg_cls.versions:
+ for v in list(pkg_cls.versions):
try:
pkg = pkg_cls(spack.spec.Spec(pkg_cls.name))
fetcher = fs.for_package_version(pkg, v)