Return-Path: Delivered-To: apmail-gump-commits-archive@www.apache.org Received: (qmail 96615 invoked from network); 6 Feb 2009 04:43:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2009 04:43:53 -0000 Received: (qmail 27437 invoked by uid 500); 6 Feb 2009 04:43:52 -0000 Mailing-List: contact commits-help@gump.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@gump.apache.org Delivered-To: mailing list commits@gump.apache.org Received: (qmail 27427 invoked by uid 99); 6 Feb 2009 04:43:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Feb 2009 20:43:52 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2009 04:43:51 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E25FB23888A0; Fri, 6 Feb 2009 04:43:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r741403 - /gump/trunk/python/gump/core/run/gumpenv.py Date: Fri, 06 Feb 2009 04:43:28 -0000 To: commits@gump.apache.org From: bodewig@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090206044329.E25FB23888A0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bodewig Date: Fri Feb 6 04:43:28 2009 New Revision: 741403 URL: http://svn.apache.org/viewvc?rev=741403&view=rev Log: implement the trivial part of supporting a new command - check for it's existance Modified: gump/trunk/python/gump/core/run/gumpenv.py Modified: gump/trunk/python/gump/core/run/gumpenv.py URL: http://svn.apache.org/viewvc/gump/trunk/python/gump/core/run/gumpenv.py?rev=741403&r1=741402&r2=741403&view=diff ============================================================================== --- gump/trunk/python/gump/core/run/gumpenv.py (original) +++ gump/trunk/python/gump/core/run/gumpenv.py Fri Feb 6 04:43:28 2009 @@ -82,6 +82,10 @@ self.noJavac = False self.noMake = False self.noMvnRepoProxy = False + self.noGit = False + self.noDarcs = False + self.noHg = False + self.noBzr = False self.javaProperties = None @@ -194,6 +198,22 @@ self.noMake=True self.addWarning('"make" command not found, no make builds') + if not self.noGit and not self._checkExecutable('git','--version',False): + self.noGit=True + self.addWarning('"git" command not found, no GIT repository updates') + + if not self.noDarcs and not self._checkExecutable('darcs','--version',False): + self.noDarcs=True + self.addWarning('"darcs" command not found, no DARCS repository updates') + + if not self.noHg and not self._checkExecutable('hg','--version',False): + self.noHg=True + self.addWarning('"hg" command not found, no Mercurial repository updates') + + if not self.noBzr and not self._checkExecutable('bzr','--version',False): + self.noBzr=True + self.addWarning('"bzr" command not found, no Bazar repository updates') + self.checked = True self.changeState(STATE_SUCCESS)