aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-17 07:08:20 -0500
committerJack Lloyd <[email protected]>2017-12-17 07:08:20 -0500
commit54cfe3d223e1a364e7355e7929a3303d49e6b34d (patch)
tree59f859d8272acbb2823a0d524ee1fd576f2ae2ea
parent071e87484212239e5d607e681e2e96799043056f (diff)
More fixes with recent pylint
-rwxr-xr-xsrc/scripts/ci_build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scripts/ci_build.py b/src/scripts/ci_build.py
index fdd71171f..011e9b3fc 100755
--- a/src/scripts/ci_build.py
+++ b/src/scripts/ci_build.py
@@ -285,6 +285,7 @@ def have_prog(prog):
exe_file = os.path.join(path, prog)
if os.path.exists(exe_file) and os.access(exe_file, os.X_OK):
return True
+ return False
def main(args=None):
# pylint: disable=too-many-branches,too-many-statements,too-many-locals,too-many-return-statements
@@ -343,7 +344,7 @@ def main(args=None):
root_dir = options.root_dir
if os.access(root_dir, os.R_OK) != True:
- raise Exception('Bad root dir setting, dir %s not readable', root_dir)
+ raise Exception('Bad root dir setting, dir %s not readable' % (root_dir))
cmds = []