summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Herbein <stephen272@gmail.com>2016-07-07 18:54:34 -0700
committerStephen Herbein <stephen272@gmail.com>2016-07-07 18:58:52 -0700
commit1a1bf31032fca3d61d1ae9209f9c77a4822eb733 (patch)
tree4aeae9c186b7e3de51422b1c0fcb61460bfadd62
parentb9148b1751b93c79930602ea23b0d8bd42b86637 (diff)
downloadspack-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.py4
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):
"""