mirror create: non-zero return code (#8585)

`mirror create` should return a non-zero return code if errors
occured.
This commit is contained in:
Axel Huebl 2019-05-27 13:01:01 +02:00 committed by Massimiliano Culpo
parent 36fda22ed9
commit 6d54212b94

View File

@ -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):