Commits

Anonymous committed cafc07f

Instead of duplicating VCS name, just use the inherit name.

  • Participants
  • Parent commits a28bdb6

Comments (0)

Files changed (1)

File smart-live-rebuild.py

 		else:
 			return self.cpv
 
-	@staticmethod
-	def vcsname():
-		return 'GIT'
-
 	def getrev(self):
 		return self.call(['git', 'rev-parse', self.env['EGIT_BRANCH']]).split('\n')[0]
 
 		else:
 			return self.cpv
 
-	@staticmethod
-	def vcsname():
-		return 'mercurial'
-
 	def getrev(self):
 		return self.call(['hg', 'tip', '--template', '{node}'])
 
 		else:
 			return self.cpv
 
-	@staticmethod
-	def vcsname():
-		return 'subversion'
-
 	def getrev(self):
 		svninfo = self.call(['svn', 'info'])
 		m = self.revre.search(svninfo)
 	opt = OptionParser(
 			usage='%prog [options] -- [emerge options]',
 			version='%%prog %s' % PV,
-			description='Enumerate all live packages in system, check their repositories for updates and remerge the updated ones. Supported VCS-es: %s.' % ', '.join([x.vcsname() for x in vcsl])
+			description='Enumerate all live packages in system, check their repositories for updates and remerge the updated ones. Supported VCS-es: %s.' % ', '.join([x.inherit for x in vcsl])
 	)
 	opt.add_option('-C', '--no-color', action='store_true', dest='monochrome', default=False,
 		help='Disable colorful output.')