Commits

Michał Górny  committed 863364f

Cache exceptions as well.

  • Participants
  • Parent commits b344362

Comments (0)

Files changed (2)

File smartliverebuild/core.py

 
 			packages = []
 			erraneous = []
+			cache = {}
 
 			def loop_iter(blocking = False):
 				needsleep = True
 						out.err('Error updating %s: [%s] %s' % (vcs.cpv, e.__class__.__name__, e))
 						erraneous.append(vcs.cpv)
 						del processes[i]
+						cache[str(vcs)] = e
 				return needsleep
 
 			filters = (opts.filter_packages or []) + (cliargs or [])
 			filt = PackageFilter(filters)
 			getvcs = VCSLoader(remote_only = opts.remote_only)
-			cache = {}
 
 			try:
 				for pkg in pm.installed.filter(filt):

File smartliverebuild/vcs/__init__.py

 				if blocking:
 					return self._endupdate(True)
 				return None
+			elif isinstance(rev, Exception):
+				raise rev
 			else:
 				return self._finishupdate(rev)
 		else: