Commits

Michał Górny  committed 7e18823

Fix referencing non-existing builddir.

  • Participants
  • Parent commits 93fffd7

Comments (0)

Files changed (1)

File ecleankernel/kernel.py

 			newk = kernels[kv]
 			setattr(newk, cat, path)
 			if cat == 'modules':
-				newk.build = paths[os.path.join(m, 'build')]
+				builddir = paths[os.path.join(m, 'build')]
+				if os.path.isdir(builddir):
+					oldk.build = builddir
 				if '%s.old' % kv in kernels:
 					# modules are not renamed to .old
 					oldk = kernels['%s.old' % kv]