Fix a bug (typo) in commit 8f27cd39

Signed-off-by: Hemmo Nieminen <hemmo.nieminen@iki.fi>
This commit is contained in:
Hemmo Nieminen 2015-06-17 21:28:42 +03:00 committed by Igor Gnatenko
parent 8f27cd399e
commit cb6ef39d91
1 changed files with 1 additions and 1 deletions

View File

@ -1780,7 +1780,7 @@ class Interpreter():
if buildtarget.subdir.startswith(self.subproject_dir):
raise InterpreterException('Tried to extract objects from a subproject target.')
else:
if not buildtarget.subdir.startswith(lead):
if not buildtarget.subdir.startswith(self.subproject_dir):
raise InterpreterException('Tried to extract objects from the main project from a subproject.')
if self.subdir.split('/')[1] != buildtarget.subdir.split('/')[1]:
raise InterpreterException('Tried to extract objects from a different subproject.')