diff options
author | George Hartzell <hartzell@alerce.com> | 2016-07-25 17:50:06 -0400 |
---|---|---|
committer | George Hartzell <hartzell@alerce.com> | 2016-08-02 11:11:05 -0400 |
commit | 6c3623422fe3d1354f14d67c54a32070e2df2d58 (patch) | |
tree | 1ba7c1ab76198e05e199b6ef4a7524396ba1bf66 /var | |
parent | 63121a0c4982bb163b064a4b97fbf820f5179be3 (diff) | |
download | spack-6c3623422fe3d1354f14d67c54a32070e2df2d58.tar.gz spack-6c3623422fe3d1354f14d67c54a32070e2df2d58.tar.bz2 spack-6c3623422fe3d1354f14d67c54a32070e2df2d58.tar.xz spack-6c3623422fe3d1354f14d67c54a32070e2df2d58.zip |
Use cleaner mech to install script
Use @adamjstewart's nicer bit of python code in the
install method.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/ack/package.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/ack/package.py b/var/spack/repos/builtin/packages/ack/package.py index 8c97e03456..41100a5e66 100644 --- a/var/spack/repos/builtin/packages/ack/package.py +++ b/var/spack/repos/builtin/packages/ack/package.py @@ -48,10 +48,6 @@ class Ack(Package): def install(self, spec, prefix): mkdirp(prefix.bin) - # find the file named like ack-2.14-single-file in a version - # independent manner (there should be only one )and install it - # as `ack`. - for f in os.listdir('.'): - if re.match('ack-\d*\.\d*-single-file', f): - install(f, join_path(prefix.bin, "ack")) - set_executable(join_path(prefix.bin, "ack")) + ack = 'ack-{0}-single-file'.format(self.version) + install(ack, join_path(prefix.bin, "ack")) + set_executable(join_path(prefix.bin, "ack")) |