From patchwork Mon Dec 16 11:24:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 181683 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4174916ile; Mon, 16 Dec 2019 03:24:10 -0800 (PST) X-Google-Smtp-Source: APXvYqwN1jGIC63yBjR5q8o4N0utdWtr1QO4KiZMmBNafN9JMHW7s4Vvi6KPLuzHS09tlt+b2qdf X-Received: by 2002:aa7:968b:: with SMTP id f11mr15487368pfk.209.1576495450567; Mon, 16 Dec 2019 03:24:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576495450; cv=none; d=google.com; s=arc-20160816; b=UoOpcHJWeJoEmHvTPk7P70WQxcQN6/SupxeBEtpUm9x3rQ02VqP4QS6T0zRDLSEJ7K /sm32MBVp0C00mgMZtdrtE3dJ8FhLEiof9RNpfikNrUC3dtQgvOL6Tkr4THK1aM2/8Ru 2EW+jW4O3tzH7VpmsRt1ZNmK8XUuW75EhG5S0U5T6NWryVLG22NpPSVS0jDnb2mFqrT6 FCoxpG1Jkrk+7/CParA0/XTu2ca1YKAIOza//7LJWkWqrYgfLOma2Tq3kEeCXAwRhc9w YNtDhCRKTXmRJWis4+Za6FfwARo5j0mCs3/GwEUvSkQ/C++ZhDJtR7plElGeHzvTqLCS Qeqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=pRvb9s8PBPSo14SVz/rKI8jdHkzePh9S0WzXLe8aZpk=; b=mZQHbnOUzFd6o0En6NXtlJcugNwq+y76UlGAM+OKKb2W9GRaIgqXV4QvZ9uE7A6r2d Q+QPJIQD4D4x7N4HR0VCP4hrVqmCIDmY1M2l8pUzu2Q4i8jzy9wb1Gff1sQ87uQQc1R0 bsPepZh9QUPD4BwByCyN7LNDI710BBsIZ4MCgQbjLGbEl2VmwKcDWeqKfLHf9Kx6tJid /CxajWymf4ABIQyilaaZ4fkgkhXJ6iJlMlfR3A35mytzxxJbUJS4vIdEHpmbJQRNT9nU NumHL7ipl4TuM0sbjxVRFeX+T3lSbvoIV4Do9hY54uYLBcPfFFG5HCfhe9vZzeBj05rw jH/w== 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=r9WfXWVk; 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 x185si18547498pgx.558.2019.12.16.03.24.10; Mon, 16 Dec 2019 03:24:10 -0800 (PST) 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=r9WfXWVk; 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 ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3E50B7F8A7; Mon, 16 Dec 2019 11:24:08 +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 7B3EA7F815 for ; Mon, 16 Dec 2019 11:24:06 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id c14so6790961wrn.7 for ; Mon, 16 Dec 2019 03:24:07 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=XNIJDWsT4z9N1xPiLgSxGTojMex0zCXIUj/fqCEzPUY=; b=r9WfXWVkHoD8gV74u49LobUMVycVXw8OvE36jMT7rBgQM09g9jo16CcQwuuCsxBUu5 jdP0fnwjnDyg5zYcey5lxH7swvzKVUi6oGTOc/F5iHp+oz9dLlqlP/4uW/A05tClILuj TekMmoN6BlikYSE/G2/XE8jfU69UEOnNqBbd43nhBqdVx9Pz11x4zGX8lWeO13udFJGr c/1+OamB5f8OQCTBzL78iMbz93Dplv+7cwBdE/Y7y24+9iUjVQElqxV17ZCNHdMSSPtk q3X0bBvPeeG//z95D9jn8j5zh7pzAtYKq2+9MT5OHTq4KKexqSmiY/q8w3IsIudult8Q zFlw== 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:mime-version :content-transfer-encoding; bh=XNIJDWsT4z9N1xPiLgSxGTojMex0zCXIUj/fqCEzPUY=; b=IpfvIiJi6/lVhZ7ruE5xhjjYz+itYa69JReb7Y61eUaVDICty+amuLnSHLWIW6WKGe hdPnN+5DiKyseFigdmHYoMoNyFCo8arXfqeNBCV0oIYyl24cqd2n0ij0f621UoAbofDJ PnqaX7+abvHcRv9uM2Rh1uWS0cVeQAbUCK5/qRkSPSIIL+LN8iAAt/FCIn8aO6Gm9/yz rhtnSWfVrlqkqR3ZZSQps29sCDLXi7+X1IhCa90GeksHm4gaetsFWOT5zqxBXYno4f69 IbJD0rhjCw30wX8dzE319l055jQE7fYV3nfH0dSUaBun4Oiy2tV1saaCCrEbVMA5kwoF dscw== X-Gm-Message-State: APjAAAUJcLQ36zWUdd7N/R5Q03A32pgN3wWz/a0SAuIFGplnFZt0YL6P Bs0YXdBiM4aNk5VQVy0rK/uLGVNqiww= X-Received: by 2002:adf:eb89:: with SMTP id t9mr30104706wrn.5.1576495446733; Mon, 16 Dec 2019 03:24:06 -0800 (PST) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id b17sm21198537wrp.49.2019.12.16.03.24.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2019 03:24:05 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Mon, 16 Dec 2019 11:24:02 +0000 Message-Id: <20191216112402.2538-1-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH] podfix: only alter normal files 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Ross Burton --- meta/classes/podfix.bbclass | 3 +++ 1 file changed, 3 insertions(+) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/podfix.bbclass b/meta/classes/podfix.bbclass index 54fff6a0a23..cc8210a27e2 100644 --- a/meta/classes/podfix.bbclass +++ b/meta/classes/podfix.bbclass @@ -16,6 +16,9 @@ python pod_strip_version() { for root, dirs, files in os.walk(d.expand("${D}${mandir}")): for filename in files: filename = os.path.join(root, filename) + if not os.path.isfile(filename): + continue + with opener(filename, "rb") as manfile: manpage = manfile.read() m = bad_re.search(manpage)