You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@madlib.apache.org by ok...@apache.org on 2018/07/25 17:41:30 UTC
madlib git commit: Madpack: Improve error message
Repository: madlib
Updated Branches:
refs/heads/master 1fe308c70 -> b96366d82
Madpack: Improve error message
Project: http://git-wip-us.apache.org/repos/asf/madlib/repo
Commit: http://git-wip-us.apache.org/repos/asf/madlib/commit/b96366d8
Tree: http://git-wip-us.apache.org/repos/asf/madlib/tree/b96366d8
Diff: http://git-wip-us.apache.org/repos/asf/madlib/diff/b96366d8
Branch: refs/heads/master
Commit: b96366d820b27dd39cf933be41010dbb81ed3a70
Parents: 1fe308c
Author: Orhan Kislal <ok...@pivotal.io>
Authored: Wed Jul 25 10:41:08 2018 -0700
Committer: Orhan Kislal <ok...@pivotal.io>
Committed: Wed Jul 25 10:41:08 2018 -0700
----------------------------------------------------------------------
src/madpack/madpack.py | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/madlib/blob/b96366d8/src/madpack/madpack.py
----------------------------------------------------------------------
diff --git a/src/madpack/madpack.py b/src/madpack/madpack.py
index 23cffa0..5382bd8 100755
--- a/src/madpack/madpack.py
+++ b/src/madpack/madpack.py
@@ -968,6 +968,9 @@ def parse_arguments():
def _is_madlib_installation_valid_for_tests(schema, db_madlib_ver, test_type):
# Compare OS and DB versions. Continue if OS = DB.
+ if not db_madlib_ver:
+ info_(this, "MADlib is not installed in the schema {0}. {1} stopped.".format(schema, test_type.capitalize()), True)
+ return False
if get_rev_num(db_madlib_ver) != get_rev_num(new_madlib_ver):
_print_vers(new_madlib_ver, db_madlib_ver, con_args, schema)
info_(this, "Versions do not match. {0} stopped.".format(test_type.capitalize()), True)