mirror create: non-zero return code (#8585)
`mirror create` should return a non-zero return code if errors occured.
This commit is contained in:
parent
36fda22ed9
commit
6d54212b94
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user