bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject git commit: BIGTOP-1399. add --help to alternative invocation to support newer Ubuntus
Date Sun, 10 Aug 2014 01:38:01 GMT
Repository: bigtop
Updated Branches:
  refs/heads/master c765c3fde -> f04ac4519


BIGTOP-1399. add --help to alternative invocation to support newer Ubuntus


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

Branch: refs/heads/master
Commit: f04ac45198b050169d3892f786ddda3f0eb766ca
Parents: c765c3f
Author: Roman Shaposhnik <rvs@apache.org>
Authored: Sat Aug 9 18:37:30 2014 -0700
Committer: Roman Shaposhnik <rvs@apache.org>
Committed: Sat Aug 9 18:37:30 2014 -0700

----------------------------------------------------------------------
 .../main/groovy/org/apache/bigtop/itest/posix/Alternative.groovy   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/f04ac451/bigtop-test-framework/src/main/groovy/org/apache/bigtop/itest/posix/Alternative.groovy
----------------------------------------------------------------------
diff --git a/bigtop-test-framework/src/main/groovy/org/apache/bigtop/itest/posix/Alternative.groovy
b/bigtop-test-framework/src/main/groovy/org/apache/bigtop/itest/posix/Alternative.groovy
index abfb770..b5f2c27 100644
--- a/bigtop-test-framework/src/main/groovy/org/apache/bigtop/itest/posix/Alternative.groovy
+++ b/bigtop-test-framework/src/main/groovy/org/apache/bigtop/itest/posix/Alternative.groovy
@@ -37,7 +37,7 @@ class Alternative {
    */
   static private String listCmd;
   static {
-    int i = (new Shell()).exec("""update-alternatives 2>/dev/null | grep -q -- "--query"
""").getRet();
+    int i = (new Shell()).exec("""update-alternatives --help 2>/dev/null | grep -q --
"--query" """).getRet();
     listCmd = (i == 0) ? "query" : "display";
   }
 


Mime
View raw message