Commits

Michał Górny committed 09216a3

Delay cache use if one update for repo is already running.

Comments (0)

Files changed (1)

smartliverebuild/vcs/__init__.py

 				return None
 			elif isinstance(rev, Exception):
 				raise rev
+			elif isinstance(rev, BaseVCSSupport):
+				# wait for it to complete, and cache its result
+				return None
 			else:
 				return self._finishupdate(rev)
 		else:
 			This function returns the spawned Popen() instance.
 		"""
 
+		if self._cache is not None:
+			self._cache[str(self)] = self
+
 		cmd = self.updatecmd
 		if self._opts.jobs > 1:
 			out.pkgs(str(self), cmd)