diff options
author | Stephen Herbein <stephen272@gmail.com> | 2016-07-07 18:54:34 -0700 |
---|---|---|
committer | Stephen Herbein <stephen272@gmail.com> | 2016-07-07 18:58:52 -0700 |
commit | 1a1bf31032fca3d61d1ae9209f9c77a4822eb733 (patch) | |
tree | 4aeae9c186b7e3de51422b1c0fcb61460bfadd62 | |
parent | b9148b1751b93c79930602ea23b0d8bd42b86637 (diff) | |
download | spack-1a1bf31032fca3d61d1ae9209f9c77a4822eb733.tar.gz spack-1a1bf31032fca3d61d1ae9209f9c77a4822eb733.tar.bz2 spack-1a1bf31032fca3d61d1ae9209f9c77a4822eb733.tar.xz spack-1a1bf31032fca3d61d1ae9209f9c77a4822eb733.zip |
lua: switch self.version[:2] to .up_to(2)
Previous package would not install correctly, would throw:
return os.path.join('share', 'lua', '%d.%d' % self.version[:2])
TypeError: %d format: a number is required, not Version
-rw-r--r-- | var/spack/repos/builtin/packages/lua/package.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/lua/package.py b/var/spack/repos/builtin/packages/lua/package.py index 761932361b..48c1c6a919 100644 --- a/var/spack/repos/builtin/packages/lua/package.py +++ b/var/spack/repos/builtin/packages/lua/package.py @@ -140,11 +140,11 @@ class Lua(Package): @property def lua_lib_dir(self): - return os.path.join('lib', 'lua', '%d.%d' % self.version[:2]) + return os.path.join('lib', 'lua', self.version.up_to(2)) @property def lua_share_dir(self): - return os.path.join('share', 'lua', '%d.%d' % self.version[:2]) + return os.path.join('share', 'lua', self.version.up_to(2)) def setup_dependent_package(self, module, ext_spec): """ |