Lines Matching refs:prerelease
109 (major, minor, patch, prerelease, prerelease_num) = \
117 if prerelease:
118 self.prerelease = (prerelease[0], string.atoi(prerelease_num))
120 self.prerelease = None
130 if self.prerelease:
131 vstring = vstring + self.prerelease[0] + str(self.prerelease[1])
141 if (compare == 0): # have to compare prerelease
143 # case 1: neither has prerelease; they're equal
144 # case 2: self has prerelease, other doesn't; other is greater
145 # case 3: self doesn't have prerelease, other does: self is greater
146 # case 4: both have prerelease: must compare them!
148 if (not self.prerelease and not other.prerelease):
150 elif (self.prerelease and not other.prerelease):
152 elif (not self.prerelease and other.prerelease):
154 elif (self.prerelease and other.prerelease):
155 return cmp(self.prerelease, other.prerelease)
158 return compare # prerelease stuff doesn't matter