Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2016-06-20 16:18:59 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2016-06-22 17:40:35 +0300
commit2bfb4654a43d765715a40e8b16d7e898e0a385e8 (patch)
tree63791fefa11642388f57e98e21dd2333da360368
parentc859c2726d16002ec19fefa2f42f7754c77a0eda (diff)
Validate existing packages for all arches before stopping due to any error
-rwxr-xr-xcalm/calm.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/calm/calm.py b/calm/calm.py
index 97746fb..0f41223 100755
--- a/calm/calm.py
+++ b/calm/calm.py
@@ -82,6 +82,7 @@ def process(args):
logging.warning("--dry-run is in effect, nothing will really be done")
# for each arch
+ error = False
packages = {}
for arch in common_constants.ARCHES:
logging.debug("reading existing packages for arch %s" % (arch))
@@ -92,7 +93,10 @@ def process(args):
# validate the package set
if not package.validate_packages(args, packages[arch]):
logging.error("existing %s package set has errors", arch)
- return None
+ error = True
+
+ if error:
+ return None
# read maintainer list
mlist = maintainers.Maintainer.read(args)