buildcache create: make "file exists" less verbose (#35019)
Currently we print 3 lines of "file exist" warning per tarball, this is a bit excessive. Instead, it can be a simple single-line tty.warn message.
This commit is contained in:
parent
d0c1b7a14e
commit
80db7a8a52
@ -510,9 +510,9 @@ class NoOverwriteException(spack.error.SpackError):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, file_path):
|
def __init__(self, file_path):
|
||||||
err_msg = "\n%s\nexists\n" % file_path
|
super(NoOverwriteException, self).__init__(
|
||||||
err_msg += "Use -f option to overwrite."
|
'"{}" exists in buildcache. Use --force flag to overwrite.'.format(file_path)
|
||||||
super(NoOverwriteException, self).__init__(err_msg)
|
)
|
||||||
|
|
||||||
|
|
||||||
class NoGpgException(spack.error.SpackError):
|
class NoGpgException(spack.error.SpackError):
|
||||||
|
Loading…
Reference in New Issue
Block a user