From 945859e01cd4687d10853a125996077700806327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Nussbaumer?= <rn@google.com> Date: Tue, 6 Sep 2011 09:02:13 +0200 Subject: [PATCH] import: Fix a logic error due to missing "not" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RenΓ© Nussbaumer <rn@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- lib/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/backend.py b/lib/backend.py index ae7871650..36da855cc 100644 --- a/lib/backend.py +++ b/lib/backend.py @@ -2878,7 +2878,7 @@ def _GetImportExportIoCommand(instance, mode, ieio, ieargs): real_filename = os.path.realpath(filename) directory = os.path.dirname(real_filename) - if utils.IsBelowDir(constants.EXPORT_DIR, real_filename): + if not utils.IsBelowDir(constants.EXPORT_DIR, real_filename): _Fail("File '%s' is not under exports directory '%s': %s", filename, constants.EXPORT_DIR, real_filename) -- GitLab