dabo Commit
Revision 3634
Date: 2007-11-06 18:05:26 -0800 (Tue, 06 Nov 2007)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/3634

Changed:
U   trunk/dabo/dApp.py

Log:
We only need to run the checks if settings.checkForUpdates is True.

Diff:
Modified: trunk/dabo/dApp.py
===================================================================
--- trunk/dabo/dApp.py  2007-11-07 00:38:02 UTC (rev 3633)
+++ trunk/dabo/dApp.py  2007-11-07 02:05:26 UTC (rev 3634)
@@ -390,13 +390,14 @@
                        # Check for cases where we absolutely will not Web 
Update.
                        update = dabo.settings.checkForWebUpdates
 
-                       # If they are running Subversion, don't update.
-                       if 
os.path.isdir(os.path.join(os.path.split(dabo.__file__)[0], ".svn")):
-                               update = False
+                       if update:
+                               # If they are running Subversion, don't update.
+                               if 
os.path.isdir(os.path.join(os.path.split(dabo.__file__)[0], ".svn")):
+                                       update = False
 
-                       # Frozen App:
-                       if hasattr(sys, "frozen") and inspect.stack()[-1][1] != 
"daborun.py":
-                               update = False
+                               # Frozen App:
+                               if hasattr(sys, "frozen") and 
inspect.stack()[-1][1] != "daborun.py":
+                                       update = False
 
                        if not update:
                                self._setWebUpdate(False)




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to