Skip to content

Commit

Permalink
Fix an issue with get_ver() function and 3.x kernels
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 Aug 16, 2011
1 parent d5110a6 commit ad84385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ketchup
Expand Up @@ -260,7 +260,7 @@ def get_ver(makefile):

# atm we use VERSION.PATCHLEVEL for Linus' releases and EXTRAVERSION for
# the -stable releases
if part['VERSION'] >= '3':
if part['VERSION'] >= '3'and part['SUBLEVEL'] == 0:
version = "%s.%s" % tuple([part[p] for p in parts[:2]])
else:
version = "%s.%s.%s" % tuple([part[p] for p in parts[:3]])
Expand Down

0 comments on commit ad84385

Please sign in to comment.