Fix a bug (typo) in commit 8f27cd39
Signed-off-by: Hemmo Nieminen <hemmo.nieminen@iki.fi>
This commit is contained in:
parent
8f27cd399e
commit
cb6ef39d91
|
@ -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.')
|
||||
|
|
Loading…
Reference in New Issue