hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject incubator-hawq git commit: HAWQ-656. Fix gppkg can't remove installed module
Date Sun, 10 Apr 2016 10:30:51 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 0d6db98fa -> e4e7f0045


HAWQ-656. Fix gppkg can't remove installed module


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/e4e7f004
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/e4e7f004
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/e4e7f004

Branch: refs/heads/master
Commit: e4e7f0045f1abe0272bdf00411314b4cde628018
Parents: 0d6db98
Author: rlei <rlei@pivotal.io>
Authored: Sun Apr 10 18:20:10 2016 +0800
Committer: rlei <rlei@pivotal.io>
Committed: Sun Apr 10 18:24:13 2016 +0800

----------------------------------------------------------------------
 tools/bin/gppylib/programs/gppkg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/e4e7f004/tools/bin/gppylib/programs/gppkg.py
----------------------------------------------------------------------
diff --git a/tools/bin/gppylib/programs/gppkg.py b/tools/bin/gppylib/programs/gppkg.py
index 7cc5190..c651e17 100755
--- a/tools/bin/gppylib/programs/gppkg.py
+++ b/tools/bin/gppylib/programs/gppkg.py
@@ -230,7 +230,7 @@ class GpPkgProgram:
             query_type, package_path = self.query
             QueryPackage(query_type, package_path).run()
         elif self.remove:
-            if self.remove.count('-') != 1:
+            if self.remove.count('-') > 3:
                 raise ExceptionNoStackTraceNeeded('Please specify the correct <name>-<version>.')
             pkg_file_list = ListFilesByPattern(GPPKG_ARCHIVE_PATH, self.remove + '-*-*' +
GPPKG_EXTENSION).run() 
             if len(pkg_file_list) == 0:


Mime
View raw message