Browse files

Fix an issue with get_ver() function and 3.x kernels

Signed-off-by: Stratos Psomadakis <psomas@cslab.ece.ntua.gr>
  • Loading branch information...
1 parent d5110a6 commit ad84385f48ccf8c93374043f15342148e695ae02 @psomas committed Aug 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ketchup
View
2 ketchup
@@ -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]])

0 comments on commit ad84385

Please sign in to comment.