You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by bo...@apache.org on 2009/02/06 05:43:28 UTC

svn commit: r741403 - /gump/trunk/python/gump/core/run/gumpenv.py

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)