Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 149134
Collapse All | Expand All

(-)pym/cache/flat_hash.py (-1 / +5 lines)
Lines 36-42 Link Here
36
			raise KeyError(cpv)
36
			raise KeyError(cpv)
37
37
38
	def _parse_data(self, data, cpv):
38
	def _parse_data(self, data, cpv):
39
		d = dict(map(lambda x:x.rstrip().split("=", 1), data))
39
		try:
40
			d = dict(map(lambda x:x.rstrip("\n").split("=", 1), data))
41
		except ValueError, e:
42
			# If a line is missing an "=", the split length is 1 instead of 2.
43
			raise cache_errors.CacheCorruption(cpv, e)
40
		if "_eclasses_" in d:
44
		if "_eclasses_" in d:
41
			d["_eclasses_"] = reconstruct_eclasses(cpv, d["_eclasses_"])
45
			d["_eclasses_"] = reconstruct_eclasses(cpv, d["_eclasses_"])
42
		return d
46
		return d

Return to bug 149134