Commits

Michał Górny committed f3d7bed

Make .cpv a single package id.

  • Participants
  • Parent commits cdb3a02

Comments (0)

Files changed (2)

File smartliverebuild/core.py

 						if ret is not None:
 							needsleep = False
 							if ret:
-								packages.extend(vcs.cpv)
+								packages.append(vcs.cpv)
 							del processes[i]
 					except KeyboardInterrupt:
 						raise
 					except Exception as e:
 						out.err('Error updating %s: [%s] %s' % (vcs.cpv, e.__class__.__name__, e))
-						erraneous.extend(vcs.cpv)
+						erraneous.append(vcs.cpv)
 						del processes[i]
 				return needsleep
 

File smartliverebuild/vcs/__init__.py

 
 	@property
 	def cpv(self):
-		""" A list of CPVs which use this particular repository. """
+		""" A package ID for update requestor. """
 		return self._cpv
 
 	def __init__(self, cpv, environ, opts):
 					raise NonLiveEbuild('SOME_REVISION specifies revision, package is not really a live one')
 		"""
 
-		self._cpv = [cpv]
+		self._cpv = cpv
 		self._opts = opts
 		self.env = environ.copy(*(self.reqenv + self.optenv))
 
 		""" Return the string used to identify the update process within
 			the program output.
 		"""
-		return ', '.join(self.cpv)
+		return self.cpv
 
 	@abstractproperty
 	def updatecmd(self):