Commits

Michał Górny  committed 7991253

core: explicitly instantiate VCSLoader.

  • Participants
  • Parent commits 2310403

Comments (0)

Files changed (1)

File smartliverebuild/core.py

 from smartliverebuild.filtering import PackageFilter
 from smartliverebuild.output import out
 from smartliverebuild.vcs import NonLiveEbuild
-from smartliverebuild.vcsload import GetVCS
+from smartliverebuild.vcsload import VCSLoader
 
 class SLRFailure(Exception):
 	pass
 
 			filters = (opts.filter_packages or []) + (cliargs or [])
 			filt = PackageFilter(filters)
+			getvcs = VCSLoader()
 
 			try:
 				try:
 								slottedcpv = cpv
 
 							for vcs in inherits:
-								vcscl = GetVCS(vcs, allowed, remote_only = opts.remote_only)
+								vcscl = getvcs(vcs, allowed, remote_only = opts.remote_only)
 								if vcscl is not None:
 									env = bz2.BZ2File('%s/environment.bz2' % db.getpath(cpv), 'r')
 									bash.grabenv(env)