diff options
author | Patrick Gartung <gartung@fnal.gov> | 2020-08-02 15:52:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-02 13:52:15 -0700 |
commit | 33116d730dafdbd85f63b01209a691f4bb143646 (patch) | |
tree | 3a40908ea587aebc5574b5e6ac5fd32ed31997e0 /lib | |
parent | f29dd48101b1669b861a0410f60e2ab44dfd54db (diff) | |
download | spack-33116d730dafdbd85f63b01209a691f4bb143646.tar.gz spack-33116d730dafdbd85f63b01209a691f4bb143646.tar.bz2 spack-33116d730dafdbd85f63b01209a691f4bb143646.tar.xz spack-33116d730dafdbd85f63b01209a691f4bb143646.zip |
Buildcache create: change NoOverwriteException back to a warning as in v0.14 (#17832)
* Change buildcache create `NoOverwriteException` back to a warning.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/buildcache.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/spack/spack/cmd/buildcache.py b/lib/spack/spack/cmd/buildcache.py index ef6c386703..7de2758082 100644 --- a/lib/spack/spack/cmd/buildcache.py +++ b/lib/spack/spack/cmd/buildcache.py @@ -399,9 +399,12 @@ def _createtarball(env, spec_yaml=None, packages=None, add_spec=True, for spec in specs: tty.debug('creating binary cache file for package %s ' % spec.format()) - bindist.build_tarball(spec, outdir, force, make_relative, - unsigned, allow_root, signing_key, - rebuild_index) + try: + bindist.build_tarball(spec, outdir, force, make_relative, + unsigned, allow_root, signing_key, + rebuild_index) + except bindist.NoOverwriteException as e: + tty.warn(e) def createtarball(args): |