From 8e2f41fe181c693666c28a23c6117faccb4808a3 Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Sun, 2 Aug 2020 15:52:15 -0500 Subject: Buildcache create: change NoOverwriteException back to a warning as in v0.14 (#17832) * Change buildcache create `NoOverwriteException` back to a warning. --- lib/spack/spack/cmd/buildcache.py | 9 ++++++--- 1 file 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): -- cgit v1.2.3-60-g2f50