dabo Commit
Revision 3333
Date: 2007-08-26 06:41:27 -0700 (Sun, 26 Aug 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3333
Changed:
U trunk/dabo/dApp.py
Log:
Temp fix for the problem of getting a string for version number instead of an
int.
Diff:
Modified: trunk/dabo/dApp.py
===================================================================
--- trunk/dabo/dApp.py 2007-08-25 14:19:05 UTC (rev 3332)
+++ trunk/dabo/dApp.py 2007-08-26 13:41:27 UTC (rev 3333)
@@ -360,12 +360,16 @@
def _currentUpdateVersion(self):
localVers = dabo.version["revision"]
- try:
- localVers = localVers.split(":")[1]
- except:
- # Not a mixed version
- pass
- ret = int("".join([ch for ch in localVers if ch.isdigit()]))
+ if "~" in localVers:
+ # It's the approximate version
+ ret = 0
+ else:
+ try:
+ localVers = localVers.split(":")[1]
+ except:
+ # Not a mixed version
+ pass
+ ret = int("".join([ch for ch in localVers if
ch.isdigit()]))
return ret
_______________________________________________
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]