Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mail.openembedded.org (Postfix) with ESMTP id 2EFBF77AA6 for ; Wed, 5 Apr 2017 21:33:12 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP; 05 Apr 2017 14:33:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,280,1488873600"; d="scan'208";a="69893468" Received: from juro-precision-t5610.jf.intel.com ([10.7.198.53]) by orsmga002.jf.intel.com with ESMTP; 05 Apr 2017 14:33:13 -0700 From: Juro Bystricky To: bitbake-devel@lists.openembedded.org Date: Wed, 5 Apr 2017 14:33:11 -0700 Message-Id: <1491427991-8595-1-git-send-email-juro.bystricky@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [PATCH] tinfoil.py: validate argument in parse_recipe_file X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2017 21:33:13 -0000 Check for an empty file name to avoid an exception. [YOCTO#11210] Signed-off-by: Juro Bystricky --- bitbake/lib/bb/tinfoil.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py index 928333a..620f409 100644 --- a/bitbake/lib/bb/tinfoil.py +++ b/bitbake/lib/bb/tinfoil.py @@ -399,6 +399,8 @@ class Tinfoil: specify config_data then you cannot use a virtual specification for fn. """ + if not fn: + return None if appends and appendlist == []: appends = False if config_data: -- 2.7.4