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
This commit is contained in:
Todd Gamblin
2019-05-20 14:25:03 -07:00
parent 6380f1917a
commit 3340d586c4
5 changed files with 171 additions and 96 deletions

View File

@@ -54,8 +54,8 @@
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([