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>2018-08-30 14:12:51 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2018-08-30 14:26:19 +0300
commitd21631e6a3b2f1f96754735c436fc53ba94b5dcd (patch)
treeac3c8c28b66c2dc0df531aa20cf56ede3550fe38
parent373f110e82b764fdd2deea36edab05deccca267a (diff)
Fix some silent errors when parsing hints fails
-rwxr-xr-xcalm/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/calm/package.py b/calm/package.py
index 5768224..e9bbe70 100755
--- a/calm/package.py
+++ b/calm/package.py
@@ -185,6 +185,7 @@ def read_package(packages, basedir, dirpath, files, remove=[], upload=False):
if legacy:
hints = read_hints(p, os.path.join(dirpath, 'setup.hint'), hint.setup)
if not hints:
+ logging.error("error parsing %s" % (os.path.join(dirpath, 'setup.hint')))
return True
warnings = clean_hints(p, hints, warnings)
files.remove('setup.hint')
@@ -198,6 +199,7 @@ def read_package(packages, basedir, dirpath, files, remove=[], upload=False):
# read override.hint
override_hints = read_hints(p, os.path.join(dirpath, 'override.hint'), hint.override)
if not override_hints:
+ logging.error("error parsing %s" % (os.path.join(dirpath, 'override.hint')))
return True
files.remove('override.hint')
else:
@@ -311,6 +313,7 @@ def read_package(packages, basedir, dirpath, files, remove=[], upload=False):
# is there a PVR.hint file?
pvr_hint = read_hints(p, os.path.join(dirpath, hint_fn), hint.pvr)
if not pvr_hint:
+ logging.error("error parsing %s" % (os.path.join(dirpath, hint_fn)))
return True
warnings = clean_hints(p, pvr_hint, warnings)
files.remove(hint_fn)