summaryrefslogtreecommitdiff
path: root/lib/spack/docs/conf.py
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2019-05-20 14:25:03 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2019-05-26 18:23:44 -0700
commit3340d586c4743f6ee95367c2ffb0056f799c0987 (patch)
treef338a173d6e2a61bcc266e2f4d0912b006225b56 /lib/spack/docs/conf.py
parent6380f1917a840bfe9fab6bc219c6806e30b7ce2a (diff)
downloadspack-3340d586c4743f6ee95367c2ffb0056f799c0987.tar.gz
spack-3340d586c4743f6ee95367c2ffb0056f799c0987.tar.bz2
spack-3340d586c4743f6ee95367c2ffb0056f799c0987.tar.xz
spack-3340d586c4743f6ee95367c2ffb0056f799c0987.zip
commands: add --update option to `spack list`
- Add a `--update FILE` option to `spack list` - Output is written to the file only if any package is newer than the file - Simplify the code in docs/conf.py using this new option
Diffstat (limited to 'lib/spack/docs/conf.py')
-rw-r--r--lib/spack/docs/conf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/docs/conf.py b/lib/spack/docs/conf.py
index 4af4e13035..bb460e40aa 100644
--- a/lib/spack/docs/conf.py
+++ b/lib/spack/docs/conf.py
@@ -54,8 +54,8 @@ os.environ['COLIFY_SIZE'] = '25x120'
os.environ['COLUMNS'] = '120'
# Generate full package list if needed
-subprocess.Popen(
- ['spack', 'list', '--format=html', '--update=package_list.html'])
+subprocess.call([
+ 'spack', 'list', '--format=html', '--update=package_list.html'])
# Generate a command index if an update is needed
subprocess.call([