diff options
author | George Hartzell <hartzell@alerce.com> | 2016-10-19 12:28:26 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-10-19 12:28:26 -0700 |
commit | 027632cbac1cfa42e2f66b53ae6c3f22bcce630e (patch) | |
tree | 63fced8742b93f304f647e7d7ab6ab24a9658927 /bin | |
parent | dbbef6ba23126baa90921693b7429f011e6ff472 (diff) | |
download | spack-027632cbac1cfa42e2f66b53ae6c3f22bcce630e.tar.gz spack-027632cbac1cfa42e2f66b53ae6c3f22bcce630e.tar.bz2 spack-027632cbac1cfa42e2f66b53ae6c3f22bcce630e.tar.xz spack-027632cbac1cfa42e2f66b53ae6c3f22bcce630e.zip |
Fix cdd package definition, dotted is a property (#2054)
Things that accessed the cdd package, such as `spack info cdd run
tripped over a buglet in the *cdd* package, causing them to exit with
something like this:
```
Caused by:
TypeError: 'str' object is not callable
File "/rss/spack/lib/spack/spack/repository.py", line 584, in get
self._instances[key] = package_class(copy)
File "/rss/spack/lib/spack/spack/package.py", line 398, in __init__
f = fs.for_package_version(self, self.version)
File "/rss/spack/lib/spack/spack/fetch_strategy.py", line 852, in for_package_version
attrs['url'] = pkg.url_for_version(version)
File "/rss/spack/var/spack/repos/builtin/packages/cdd/package.py", line 40, in url_for_version
str(version.dotted()).replace('.', ''))
```
@tgamblin pointed out that `dotted` is a property, not a functin call
and that the parentheses are therefor inappropriate.
This deletes the parentheses. `spack info cdd` now works for me.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions