diff options
author | Patrick Gartung <gartung@fnal.gov> | 2020-08-02 15:52:15 -0500 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2020-08-12 23:58:10 -0700 |
commit | 8e2f41fe181c693666c28a23c6117faccb4808a3 (patch) | |
tree | cc64fcc8f946b21cab9eefd0347f2b322277faab /lib | |
parent | 50f76f613182bc106cae426f024d14fd28351f5a (diff) | |
download | spack-8e2f41fe181c693666c28a23c6117faccb4808a3.tar.gz spack-8e2f41fe181c693666c28a23c6117faccb4808a3.tar.bz2 spack-8e2f41fe181c693666c28a23c6117faccb4808a3.tar.xz spack-8e2f41fe181c693666c28a23c6117faccb4808a3.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): |