From patchwork Tue Aug 14 16:21:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 144198 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4559030ljj; Tue, 14 Aug 2018 09:21:20 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw/CndLzRjrY0PZ+rKXPPFfsYgAV9PZI4Tpv1Kk9kx8gc0UhWVym3OdihUF2WKSmDCRYr7t X-Received: by 2002:a17:902:8ec8:: with SMTP id x8-v6mr20587698plo.308.1534263680249; Tue, 14 Aug 2018 09:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534263680; cv=none; d=google.com; s=arc-20160816; b=z29XQdZ82maRhl6C/zhimKYgTHZKDwobjQ8ZLrxr+aai4+xj2nBKkyEL47vctNFhGa iuXhUUT4GOVHOxfrIHw7jzHChPxXEYU5TgS4tnV5dJRlf9sci9vNKTzx84mW9GBXhh26 YMleIgjT3i09lN5+irvYfNDNRbiz9nbA4FYn80QkV/JymiNMfKwAp43X4PFLGKqka58c a+/OvAf9omiBvo0M3ZrYJJdUV6c/rnOnd/srK8QD+Op3bX9rHTY3SrDEzsJ2xjVThkRy /Sfx4tbmLIJ4PabQw5wYF4nUWwUBHuPPsJWdB+LdmsJmZUViATS7WrPOcdEEqae+kUTc jpBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=dkm36mcQTayFvwYEsReBbwg4GiAPcuUOyEYB9UEG5Io=; b=ZUV+j0vc7/lThIp0X6bsWWD8bWl8JxtguemaQiNJyYYUGPjn8oEfkCnuqkgYoC6oZO mQmdeuvv/qJZljiiqEzbFZ4h1TE4DaLK9mLFAWrV+t+bX2+bFWxo/32jM+hDSmx1LHp4 2Zt69vGZk99CYAqLhprpaAZHw1nbFBfXvbkdJNvCV7Rt0x2h2smdp90Gzbsz8GlexS+E 6jypyqtWhJjQQlxCSofte+CLjryojElC3c0I0eSqdbdEYuJII+rv6s4XUZHMLCCfKhXt Ya9wM/Bxixgjarpfeleor9BwVtoleNdPDAh5RN14jWdDWutv/m5FYYFQYQni2VmH6jTB YFtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=IvNGG8Ak; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id t79-v6si22458178pfa.170.2018.08.14.09.21.19; Tue, 14 Aug 2018 09:21:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=IvNGG8Ak; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 5B8FD79029; Tue, 14 Aug 2018 16:21:17 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by mail.openembedded.org (Postfix) with ESMTP id C8BBB78FBD for ; Tue, 14 Aug 2018 16:21:15 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id g1-v6so17735350wru.2 for ; Tue, 14 Aug 2018 09:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=/j7pBZJszqI8iXa9Py/a2P7hw1jUdgwQEUNoW+FO8Pw=; b=IvNGG8AkvdeeAzlFa20VEiR/Rc1GsL0200KiRWZj8Gei1Pqvi3zBPVVCQqt5vxodVa UE03uqrMivfUx6f69ZHrusARJpgjzupfp3XHamKr3pon/IhkyNi6kjsMtcYLfnEpbbfl 5P5OE25k397PdGKLlhY667EVHEv27va29uovBg5anCh6Y48CXoa2QWDvdDSZBZvLDNtD aPcFYV20uenxIpBJ/g4I18RQsa8aMq2KtU+4TQ+OzXWmCdJcqxhHUV5DpdyeLsUYCyXd S2NeuE1nGza/DvwQupENHZHlflsqgByf7GJ7YAmiirK9DAGIMoRYR2AxlpsAZuR7u8hu gDDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=/j7pBZJszqI8iXa9Py/a2P7hw1jUdgwQEUNoW+FO8Pw=; b=NYtZ8nxAj58WLSJ1uD2tr0red2iJII/NCUGzPmoXZ2CXmMDgbbB0437EKPmqpLg31Y HNRen+irqtJYSsWoLRQjJxw0sE2W9/L/Qsc51HbGwHC7ZvsAKFmlayXnLJZ8KCoN9bJ6 LnltHITKSN9234BZKOXBLsFgPUtDcmxWedTyPuo6eiDBHkjPjCZ2YK7/13ijNp9W23Fb 6RFQiPXsPe19pGbO+iHONpPKDESHYPp9H6vvs94jNj4idQKhzpn7tNvcLclNO8pOVfUX Rr/vJFHoRLgtq/LMwCcUdrtCfY0wB46O7FLhyvwly19dpus3tFiQY8mB2XzVS9wSAtVa OkiA== X-Gm-Message-State: AOUpUlFH2AO5K8y2t22xfvt09R4+yvxLBjzHhcAEhIiMip7YLCwK44t3 Z6MKwfQB3wSfEBW/7n8e8b6tJAXoSIU= X-Received: by 2002:a5d:55c8:: with SMTP id i8-v6mr13510548wrw.38.1534263676103; Tue, 14 Aug 2018 09:21:16 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id x82-v6sm40273330wmd.11.2018.08.14.09.21.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 09:21:15 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Tue, 14 Aug 2018 17:21:13 +0100 Message-Id: <20180814162113.22774-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] oe-pkgdata-util: improve resiliance of lookup-recipe X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org If we can't find the pkgdata for a package, instead of erroring out just emit a message and continue. This makes it possible to pass long lists of packages to oe-pkgdata-util and process the output. Signed-off-by: Ross Burton --- scripts/oe-pkgdata-util | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util index e6c9df94e83..5d2e328ee08 100755 --- a/scripts/oe-pkgdata-util +++ b/scripts/oe-pkgdata-util @@ -279,10 +279,10 @@ def lookup_recipe(args): parse_pkgdatafile(pkgdatafile) continue pkgdatafile = os.path.join(args.pkgdata_dir, 'runtime-reverse', pkg) - if not os.path.exists(pkgdatafile): - logger.error("The following packages could not be found: %s" % pkg) - sys.exit(1) - parse_pkgdatafile(pkgdatafile) + if os.path.exists(pkgdatafile): + parse_pkgdatafile(pkgdatafile) + else: + print("The following packages could not be found: %s" % pkg) def package_info(args): def parse_pkgdatafile(pkgdatafile):