Commits

Michał Górny committed 3d5aea5

Fix reverse logic wrt git-2/git-r3.

Comments (0)

Files changed (2)

smartliverebuild/vcs/git_2.py

 
 class Git2Support(GitR3Support):
 	def __init__(self, *args, **kwargs):
-		kwargs['want_r3'] = False
+		kwargs['want_r2'] = True
 		GitR3Support.__init__(self, *args, **kwargs)

smartliverebuild/vcs/git_r3.py

 	optenv = ['EGIT_BRANCH', 'EGIT_COMMIT', 'EGIT_MASTER']
 
 	def __init__(self, *args, **kwargs):
-		want_r3 = 'want_r3' in kwargs
-		if want_r3:
-			del kwargs['want_r3']
+		want_r2 = 'want_r2' in kwargs
+		if want_r2:
+			del kwargs['want_r2']
 
 		RemoteVCSSupport.__init__(self, *args, **kwargs)
 		if (self.env['EGIT_COMMIT']
 			raise NonLiveEbuild('EGIT_COMMIT set, package is not really a live one')
 		self.repo_uris = self.env['EGIT_REPO_URI'].split()
 
-		if want_r3 != bool(self.env['EGIT_MASTER']):
+		if want_r2 == bool(self.env['EGIT_MASTER']):
 			raise OtherEclass()
 
 	def __str__(self):