Buildcache create: change NoOverwriteException back to a warning as in v0.14 (#17832)
* Change buildcache create `NoOverwriteException` back to a warning.
This commit is contained in:
parent
50f76f6131
commit
8e2f41fe18
1 changed files with 6 additions and 3 deletions
|
@ -399,9 +399,12 @@ def _createtarball(env, spec_yaml=None, packages=None, add_spec=True,
|
||||||
|
|
||||||
for spec in specs:
|
for spec in specs:
|
||||||
tty.debug('creating binary cache file for package %s ' % spec.format())
|
tty.debug('creating binary cache file for package %s ' % spec.format())
|
||||||
bindist.build_tarball(spec, outdir, force, make_relative,
|
try:
|
||||||
unsigned, allow_root, signing_key,
|
bindist.build_tarball(spec, outdir, force, make_relative,
|
||||||
rebuild_index)
|
unsigned, allow_root, signing_key,
|
||||||
|
rebuild_index)
|
||||||
|
except bindist.NoOverwriteException as e:
|
||||||
|
tty.warn(e)
|
||||||
|
|
||||||
|
|
||||||
def createtarball(args):
|
def createtarball(args):
|
||||||
|
|
Loading…
Reference in a new issue