diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2018-12-19 11:37:54 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-19 11:37:54 -0600 |
commit | 0fcca9f422710f5bf94aa980c3ee152b2ea41dde (patch) | |
tree | d849ee4e5ddf556526bfdab6f4e09e4da601333a | |
parent | e19e176e673e9b1129c640e12a85f1338130f29e (diff) | |
download | spack-0fcca9f422710f5bf94aa980c3ee152b2ea41dde.tar.gz spack-0fcca9f422710f5bf94aa980c3ee152b2ea41dde.tar.bz2 spack-0fcca9f422710f5bf94aa980c3ee152b2ea41dde.tar.xz spack-0fcca9f422710f5bf94aa980c3ee152b2ea41dde.zip |
Add list_url to docbook-xml (#10146)
-rw-r--r-- | var/spack/repos/builtin/packages/docbook-xml/package.py | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/var/spack/repos/builtin/packages/docbook-xml/package.py b/var/spack/repos/builtin/packages/docbook-xml/package.py index 62f87a6ae1..71da1a7989 100644 --- a/var/spack/repos/builtin/packages/docbook-xml/package.py +++ b/var/spack/repos/builtin/packages/docbook-xml/package.py @@ -9,20 +9,17 @@ from spack import * class DocbookXml(Package): """Docbook DTD XML files.""" - homepage = "http://www.oasis-open.org/docbook" - url = "http://www.oasis-open.org/docbook/xml/4.5/docbook-xml-4.5.zip" + + homepage = "https://www.oasis-open.org/docbook" + url = "https://www.oasis-open.org/docbook/xml/4.5/docbook-xml-4.5.zip" + list_url = "https://www.oasis-open.org/docbook/xml/" + list_depth = 1 version('4.5', '03083e288e87a7e829e437358da7ef9e') def install(self, spec, prefix): - 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) + install_tree('.', prefix) def setup_environment(self, spack_env, run_env): - catalog = os.path.join(self.spec.prefix, 'catalog.xml') + catalog = os.path.join(self.prefix, 'catalog.xml') run_env.set('XML_CATALOG_FILES', catalog, separator=' ') |