Commits

Michał Górny committed 4543a5d
  • Participants
  • Parent commits 3810629

Comments (0)

Files changed (1)

File ecleankernel/kernel.py

 	for cat, g in globs:
 		for m in glob('%s*' % g):
 			kv = m[len(g):]
+			if kv.startswith('genkernel-'):
+				try:
+					kv = kv.split('-', 2)[2]
+				except IndexError:
+					pass
+
 			path = paths[m]
 			newk = kernels[kv]
 			setattr(newk, cat, path)