summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-07-08 11:09:41 -0700
committerGitHub <noreply@github.com>2016-07-08 11:09:41 -0700
commitf04258eb296c782491e16c7859a549996a667fc6 (patch)
tree990c7a8c74562cf22806fcb3a309f816346e1439 /var
parent1fa67e458cef6b171ccae7689fab46a01023f469 (diff)
parent1b53452618154b47caa5a4d8493ff025c9a3aa10 (diff)
downloadspack-f04258eb296c782491e16c7859a549996a667fc6.tar.gz
spack-f04258eb296c782491e16c7859a549996a667fc6.tar.bz2
spack-f04258eb296c782491e16c7859a549996a667fc6.tar.xz
spack-f04258eb296c782491e16c7859a549996a667fc6.zip
Merge pull request #1192 from SteVwonder/develop
docbook-xml: replace 'cp -t' with install_tree
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/docbook-xml/package.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/docbook-xml/package.py b/var/spack/repos/builtin/packages/docbook-xml/package.py
index 9c22174610..87137168f3 100644
--- a/var/spack/repos/builtin/packages/docbook-xml/package.py
+++ b/var/spack/repos/builtin/packages/docbook-xml/package.py
@@ -23,7 +23,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
import os
-import glob
from spack import *
@@ -35,9 +34,10 @@ class DocbookXml(Package):
version('4.5', '03083e288e87a7e829e437358da7ef9e')
def install(self, spec, prefix):
- cp = which('cp')
-
- install_args = ['-a', '-t', prefix]
- install_args.extend(glob.glob('*'))
-
- cp(*install_args)
+ for item in os.listdir('.'):
+ src = os.path.abspath(item)
+ dst = os.path.join(prefix, item)
+ if os.path.isdir(item):
+ install_tree(src, dst, symlinks=True)
+ else:
+ install(src, dst)