1. Michał Górny
  2. smart-live-rebuild

Commits

Michał Górny  committed 840c9dc

Check for EGIT_COMMIT.

EGIT_COMMIT is GIT equivalent of ESVN_REVISION and similar. We should
check for it to make sure the package is really a live one.

  • Participants
  • Parent commits 81016dc
  • Branches master

Comments (0)

Files changed (1)

File smart-live-rebuild.py

View file
 		VCSSupport.__init__(self, cpv, env)
 		if self.env['EGIT_HAS_SUBMODULES'] == 'true':
 			raise NotImplementedError('Submodules are not supported')
+		elif self.env['EGIT_COMMIT']:
+			raise Exception('EGIT_COMMIT set, package is not really live one')
 
 	def getpath(self):
 		return '%s/%s' % (self.env['EGIT_STORE_DIR'], self.env['EGIT_PROJECT'])