Skip to content

Commit

Permalink
Minor fix for last_minor()
Browse files Browse the repository at this point in the history
Signed-off-by: Stratos Psomadakis <psomas@cslab.ece.ntua.gr>
  • Loading branch information
psomas committed Jul 27, 2011
1 parent 8cd1d06 commit 9282aa4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ketchup
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def revbase(ver):
t1 = t - 1
if t1 == 2:
t1 = 2.6
if r == last_minor(t1):
if t1 != 1.6 and r == last_minor(t1):
t = t1

return "%s.%s" % (t, r)
Expand Down Expand Up @@ -411,9 +411,11 @@ def last_minor(t):
p.sort()

if not p:
transitions[url] = None
return None

transitions[url] = p[-1]

return p[-1]

def find_info(ver):
Expand Down

0 comments on commit 9282aa4

Please sign in to comment.