You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@madlib.apache.org by ri...@apache.org on 2017/02/06 20:38:35 UTC
incubator-madlib git commit: Madpack: Retain only major.minor after
processing DB version
Repository: incubator-madlib
Updated Branches:
refs/heads/master 078ba9eb8 -> d035faa19
Madpack: Retain only major.minor after processing DB version
Project: http://git-wip-us.apache.org/repos/asf/incubator-madlib/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-madlib/commit/d035faa1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-madlib/tree/d035faa1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-madlib/diff/d035faa1
Branch: refs/heads/master
Commit: d035faa190ba55b4262d4832c97a234e7714cc34
Parents: 078ba9e
Author: Rahul Iyer <ri...@apache.org>
Authored: Mon Feb 6 12:38:28 2017 -0800
Committer: Rahul Iyer <ri...@apache.org>
Committed: Mon Feb 6 12:38:28 2017 -0800
----------------------------------------------------------------------
src/madpack/madpack.py | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-madlib/blob/d035faa1/src/madpack/madpack.py
----------------------------------------------------------------------
diff --git a/src/madpack/madpack.py b/src/madpack/madpack.py
index ddd75df..2e21fa4 100755
--- a/src/madpack/madpack.py
+++ b/src/madpack/madpack.py
@@ -1187,6 +1187,9 @@ def main(argv):
# 'on' by default in 4.3.5
elif _is_rev_gte(_get_rev_num(dbver), _get_rev_num('4.3.4')):
dbver = '4.3ORCA'
+ else:
+ # only need the first two digits for <= 4.3.4
+ dbver = '.'.join(dbver.split('.')[:2])
if not os.path.isdir(os.path.join(portdir, dbver)):
_error("This version is not among the %s versions for which "