From 73b55bf3afefcc24d3a7d8f382de4a7cc1bc307c Mon Sep 17 00:00:00 2001 From: chipx86 Date: Tue, 19 May 2009 07:06:48 +0000 Subject: Fix the ClearCaseClient to not break post-review if cleartool isn't installed. We now properly do a check_install on "clearcase help". --- scripts/post-review | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/post-review b/scripts/post-review index ef51323..405bed6 100755 --- a/scripts/post-review +++ b/scripts/post-review @@ -739,6 +739,9 @@ class ClearCaseClient(SCMClient): return md5(fname).hexdigest() def get_repository_info(self): + if not check_install('cleartool help'): + return None + # We must be running this from inside a view. # Otherwise it doesn't make sense. self.viewinfo = execute(["cleartool", "pwv", "-short"]) -- cgit v1.2.3