Fix a bug (typo) in commit 8f27cd39

Signed-off-by: Hemmo Nieminen <hemmo.nieminen@iki.fi>
pull/155/head
Hemmo Nieminen 10 years ago committed by Igor Gnatenko
parent 8f27cd399e
commit cb6ef39d91
  1. 2
      interpreter.py

@ -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…
Cancel
Save