summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2016-12-31 00:52:49 -0600
committerTodd Gamblin <tgamblin@llnl.gov>2016-12-30 22:52:49 -0800
commit8cb54a9a67b52c809c1681cfce18c8adcf70d32a (patch)
treeafdcd304e71c4180123a26f97297e4d16a0058ea
parentc88df5819d2c62abbc3eb5a808ea1cce360ac884 (diff)
downloadspack-8cb54a9a67b52c809c1681cfce18c8adcf70d32a.tar.gz
spack-8cb54a9a67b52c809c1681cfce18c8adcf70d32a.tar.bz2
spack-8cb54a9a67b52c809c1681cfce18c8adcf70d32a.tar.xz
spack-8cb54a9a67b52c809c1681cfce18c8adcf70d32a.zip
Fix missing debug parameter for parse_version() (#2696)
-rw-r--r--lib/spack/spack/url.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/url.py b/lib/spack/spack/url.py
index 9043a5ad3e..85311ba64c 100644
--- a/lib/spack/spack/url.py
+++ b/lib/spack/spack/url.py
@@ -266,11 +266,11 @@ def parse_version_offset(path, debug=False):
raise UndetectableVersionError(original_path)
-def parse_version(path):
+def parse_version(path, debug=False):
"""Given a URL or archive name, extract a version from it and return
a version object.
"""
- ver, start, l = parse_version_offset(path)
+ ver, start, l = parse_version_offset(path, debug=debug)
return Version(ver)