[asterisk-commits] qwell: testsuite/asterisk/trunk r1808 - /asterisk/trunk/lib/python/asterisk/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Aug 3 11:30:54 CDT 2011
Author: qwell
Date: Wed Aug 3 11:30:50 2011
New Revision: 1808
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1808
Log:
We were adding an extra 0 to versions, for some reason. This still limits us to a version number of 99.99.99.99
Modified:
asterisk/trunk/lib/python/asterisk/version.py
Modified: asterisk/trunk/lib/python/asterisk/version.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/version.py?view=diff&rev=1808&r1=1807&r2=1808
==============================================================================
--- asterisk/trunk/lib/python/asterisk/version.py (original)
+++ asterisk/trunk/lib/python/asterisk/version.py Wed Aug 3 11:30:50 2011
@@ -60,20 +60,20 @@
def __int__(self):
if self.svn is True:
if self.branch == "trunk":
- return 999999999
+ return 99999999
elif self.branch[:6] == "branch":
return int(AsteriskVersion(self.branch[7:])) + 99
else:
# team branch XXX (may not be off of trunk)
- return 999999999
+ return 99999999
else:
- res = int(self.concept) * 10000000
+ res = int(self.concept) * 1000000
if self.major is not None:
- res += int(self.major) * 100000
+ res += int(self.major) * 10000
if self.minor is not None:
- res += int(self.minor) * 1000
+ res += int(self.minor) * 100
if self.patch is not None:
- res += int(self.patch) * 10
+ res += int(self.patch)
return res
def __cmp__(self, other):
More information about the asterisk-commits
mailing list