diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/util/format.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/spack/spack/util/format.py b/lib/spack/spack/util/format.py index c42597a8c3..acbf6f7a24 100644 --- a/lib/spack/spack/util/format.py +++ b/lib/spack/spack/util/format.py @@ -21,16 +21,6 @@ def get_version_lines(version_hashes_dict: dict, url_dict: Optional[dict] = None version_lines = [] for v, h in version_hashes_dict.items(): - expand_arg = "" - - # Extract the url for a version if url_dict is provided. - url = "" - if url_dict is not None and v in url_dict: - url = url_dict[v] - - # Add expand_arg since wheels should not be expanded during stanging - if url.endswith(".whl") or ".whl#" in url: - expand_arg = ", expand=False" - version_lines.append(f' version("{v}", sha256="{h}"{expand_arg})') + version_lines.append(f' version("{v}", sha256="{h}")') return "\n".join(version_lines) |