Commits

Michał Górny  committed 51a8d52

Report version collisions explicitly.

  • Participants
  • Parent commits de9cc6b

Comments (0)

Files changed (1)

File ecleankernel/kernel.py

 				continue
 			path = paths[m]
 			newk = kernels[kv]
-			setattr(newk, cat, path)
+			try:
+				setattr(newk, cat, path)
+			except KeyError:
+				raise SystemError('Colliding %s files: %s and %s'
+						% (cat, m, getattr(newk, cat)))
+
 			if cat == 'modules' and '%s.old' % kv in kernels:
 				kernels['%s.old' % kv].modules = path
 			if cat == 'vmlinuz':