diff options
author | Gregory Becker <becker33@llnl.gov> | 2016-05-09 17:06:21 -0700 |
---|---|---|
committer | Gregory Becker <becker33@llnl.gov> | 2016-05-09 17:06:21 -0700 |
commit | c6ac709d70adf9d6ecf5b840411bf5e3e4ba1523 (patch) | |
tree | fd2971aa0c93f8e0117eb5d1cbd6c1bb6e7f39b1 /lib | |
parent | a7026da45c1f0eefd3d4e8bcf8a2d28cccab4666 (diff) | |
download | spack-c6ac709d70adf9d6ecf5b840411bf5e3e4ba1523.tar.gz spack-c6ac709d70adf9d6ecf5b840411bf5e3e4ba1523.tar.bz2 spack-c6ac709d70adf9d6ecf5b840411bf5e3e4ba1523.tar.xz spack-c6ac709d70adf9d6ecf5b840411bf5e3e4ba1523.zip |
WIP fixing all the things that broke when I changed the anonymous spec names
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/spec.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py index 0c6a49dd4c..547f006e7a 100644 --- a/lib/spack/spack/spec.py +++ b/lib/spack/spack/spec.py @@ -2122,6 +2122,7 @@ class SpecParser(spack.parse.Parser): spec_namespace = None self.check_identifier(spec_name) else: + spec_namespace = None spec_name = None @@ -2293,7 +2294,8 @@ def parse_anonymous_spec(spec_like, pkg_name): try: anon_spec = Spec(spec_like) if anon_spec.name != pkg_name: - raise SpecParseError(spack.parse.ParseError("","","Expected anonymous spec for package %s but found spec for package %s" % (pkg_name, anon_spec_name) )) + print anon_spec.name, pkg_name + raise SpecParseError(spack.parse.ParseError("","","Expected anonymous spec for package %s but found spec for package %s" % (pkg_name, anon_spec.name) )) except SpecParseError: anon_spec = Spec(pkg_name + ' ' + spec_like) if anon_spec.name != pkg_name: raise ValueError( |