Permalink
Browse files

Fix URL bug for linux-3

Signed-off-by: Stratos Psomadakis <psomas@cslab.ece.ntua.gr>
  • Loading branch information...
1 parent c40a114 commit ffabbbea34f8fb0583bdbf233ad5cb1e1cf4750e @psomas committed Jul 22, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 ketchup
View
@@ -645,6 +645,12 @@ def install_nearest(ver):
tarballs = glob.glob(archive + "/linux-%s.*.tar.bz2" % t)
list = []
+ # ugly hack, upstream dir is /v3.0 (not v3)
+ # FIXME: we assume that this will be the case for linux-4.0 and later releases
+ # if not, we'll have to fix it again :)
+ if t >= 3:
+ t = "%s.0" % t
+
for f in tarballs:
m = re.match(r'.*/linux-(.*).tar.bz2$', f)
v = m.group(1)

0 comments on commit ffabbbe

Please sign in to comment.