summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2019-05-27 13:01:01 +0200
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2019-05-27 13:01:01 +0200
commit6d54212b94d938ac27b1c7821bc4424fd4a049c0 (patch)
treeb7bf5cb2111284c0aad7f1498b771d1f733d6554
parent36fda22ed90add620a7b6485d482f73f390dac41 (diff)
downloadspack-6d54212b94d938ac27b1c7821bc4424fd4a049c0.tar.gz
spack-6d54212b94d938ac27b1c7821bc4424fd4a049c0.tar.bz2
spack-6d54212b94d938ac27b1c7821bc4424fd4a049c0.tar.xz
spack-6d54212b94d938ac27b1c7821bc4424fd4a049c0.zip
mirror create: non-zero return code (#8585)
`mirror create` should return a non-zero return code if errors occured.
-rw-r--r--lib/spack/spack/cmd/mirror.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/spack/cmd/mirror.py b/lib/spack/spack/cmd/mirror.py
index 698b78adb5..126347285f 100644
--- a/lib/spack/spack/cmd/mirror.py
+++ b/lib/spack/spack/cmd/mirror.py
@@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+import sys
import os
from datetime import datetime
@@ -205,6 +206,7 @@ def mirror_create(args):
if error:
tty.error("Failed downloads:")
colify(s.cformat("{name}{@version}") for s in error)
+ sys.exit(1)
def mirror(parser, args):