[Checkins] SVN: z3c.checkversions/trunk/z3c/checkversions/base.py fixed also for non final versions
Christophe Combelles
ccomb at free.fr
Tue Aug 24 20:30:30 EDT 2010
Log message for revision 115926:
fixed also for non final versions
Changed:
U z3c.checkversions/trunk/z3c/checkversions/base.py
-=-
Modified: z3c.checkversions/trunk/z3c/checkversions/base.py
===================================================================
--- z3c.checkversions/trunk/z3c/checkversions/base.py 2010-08-25 00:04:34 UTC (rev 115925)
+++ z3c.checkversions/trunk/z3c/checkversions/base.py 2010-08-25 00:30:29 UTC (rev 115926)
@@ -99,15 +99,13 @@
if not _final_version(dist.parsed_version):
continue
# trunk the version tuple to the first `level` elements
- trunked_current = list(parsed_version[:level])
- trunked_candidate = list(dist.parsed_version[:level])
- # remove *final and pad both to the level length
- if '*final' in trunked_candidate:
- trunked_candidate.remove('*final')
+ # (and remove *final and pad both to the level length)
+ trunked_current = [x for x in parsed_version[:level]
+ if not x.startswith('*')]
+ trunked_candidate = [x for x in dist.parsed_version[:level]
+ if not x.startswith('*')]
while len(trunked_candidate) < level:
trunked_candidate.append('00000000')
- if '*final' in trunked_current:
- trunked_current.remove('*final')
while len(trunked_current) < level:
trunked_current.append('00000000')
# ok now we can compare: -> skip if we're still higher.
More information about the checkins
mailing list