Commits

Anonymous committed edd0adc

Drop use of VCS names, now 'type' is temporarily freeform.

  • Participants
  • Parent commits 4b9e826

Comments (0)

Files changed (1)

File smart-live-rebuild

 vcsl = [GitSupport, HgSupport, SvnSupport, CVSSupport]
 
 def main(argv):
-	vcsnames = [x.inherit for x in vcsl]
 	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(vcsnames)
+			description='Enumerate all live packages in system, check their repositories for updates and remerge the updated ones.'
 	)
 	opt.add_option('-c', '--config-file', action='store', dest='config_file',
 		help='Configuration file (default: /etc/portage/smart-live-rebuild.conf)')
 		help='Call quickpkg to create binary backups of packages which are going to be updated.')
 	opt.add_option('-S', '--no-setuid', action='store_false', dest='setuid',
 		help='Do not switch UID to portage when FEATURES=userpriv is set.')
-	opt.add_option('-t', '--type', action='append', type='choice', choices=vcsnames, dest='type',
-		help='Limit rebuild to packages using specific VCS. If used multiple times, all specified VCS-es will be used.')
+	opt.add_option('-t', '--type', action='append', dest='type',
+		help='Limit rebuild to packages using specific VCS (eclass name). If used multiple times, all specified VCS-es will be used.')
 	opt.add_option('-U', '--unprivileged-user', action='store_true', dest='unprivileged_user',
 		help='Allow running as an unprivileged user.')
 
 			t = c.get(sect, k)
 			if t != '':
 				deftypes = t.split(',')
-				for t in list(deftypes):
-					if t not in vcsnames:
-						out.err('Incorrect value within %s: %s' % (k, t))
-						deftypes.remove(t)
 		else:
 			newdefs[k] = c.get(sect, k)