gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject svn commit: r155623 - in gump/trunk: bin/integrate.py python/gump/core/run/options.py
Date Sun, 27 Feb 2005 13:21:51 GMT
Author: leosimons
Date: Sun Feb 27 05:21:49 2005
New Revision: 155623

URL: http://svn.apache.org/viewcvs?view=rev&rev=155623
Log:
Add in an easy way to run gump if you do not have any network. Simply set the GUMP_WORK_OFFLINE
variable and no cvs/svn/http updates will be attempted.

Modified:
    gump/trunk/bin/integrate.py
    gump/trunk/python/gump/core/run/options.py

Modified: gump/trunk/bin/integrate.py
URL: http://svn.apache.org/viewcvs/gump/trunk/bin/integrate.py?view=diff&r1=155622&r2=155623
==============================================================================
--- gump/trunk/bin/integrate.py (original)
+++ gump/trunk/bin/integrate.py Sun Feb 27 05:21:49 2005
@@ -76,8 +76,12 @@
     options.setQuick(False)
     options.setCache(False)
     
-    # 
-    options.setObjectives(gump.core.run.options.OBJECTIVE_INTEGRATE)    
+    if not os.environ.has_key('GUMP_WORK_OFFLINE'):
+      options.setObjectives(gump.core.run.options.OBJECTIVE_INTEGRATE)
+    else:
+      options.setCache(True)
+      options.setObjectives(gump.core.run.options.OBJECTIVE_OFFLINE)
+    
     
     # The Run Details...
     run=gump.core.run.gumprun.GumpRun(workspace,ps,options)

Modified: gump/trunk/python/gump/core/run/options.py
URL: http://svn.apache.org/viewcvs/gump/trunk/python/gump/core/run/options.py?view=diff&r1=155622&r2=155623
==============================================================================
--- gump/trunk/python/gump/core/run/options.py (original)
+++ gump/trunk/python/gump/core/run/options.py Sun Feb 27 05:21:49 2005
@@ -54,6 +54,7 @@
 OBJECTIVE_REDO=OBJECTIVE_UPDATE | OBJECTIVE_BUILD
 OBJECTIVE_INTEGRATE=OBJECTIVE_UPDATE | OBJECTIVE_BUILD | \
                         OBJECTIVE_DOCUMENT
+OBJECTIVE_OFFLINE=OBJECTIVE_BUILD | OBJECTIVE_DOCUMENT
 
 # Features            
 FEATURE_UNSET=0



Mime
View raw message