From patchwork Mon Jun 24 16:27:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 167629 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4429337ilk; Mon, 24 Jun 2019 09:27:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhEvtx8/ev4P0X35cw38Z7aDbs8ZXgCAY0MNc/EAvf+QPD7ueUOE8v1XEhxpW4MNGJDP+x X-Received: by 2002:a63:f959:: with SMTP id q25mr14664327pgk.357.1561393639168; Mon, 24 Jun 2019 09:27:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561393639; cv=none; d=google.com; s=arc-20160816; b=witBbaUM2LEIsBddPlQ9ndhC1GLNs0fRb3YPUMctBodqdgIyEKP1xIx2ojIU9r6inL G614gns6vlpj/XYUmcS/Oj1aB0/LFDFetwjojSXAZ3uT33j6t7j+WXtZYQkTitgK2TS6 Py/OP/hHWcbNT/9VtWFRZJupGpaJMdYMhCdu9bAgyLTBfDt2GM0h/ud6hohc7LCsYroV DsseViy42QWIE8WG50kuRPdTK9hrKKo0UsGm/Xt2Nh8OiLHSTGNzxbRiQ8Xt59Akzknr AnQ5EEp0e/NFmcx0e/W2dSUgyId/QZy1W5tEx5aRPR9c1Z92opI18FDNpCnSdGh0hVbG AutA== 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; bh=nJmOiKpiiJXRh3me71o1f7HJF3H2D00982ImW2xn1JM=; b=0yzZZ/iK1U5ocatvKV4RWfvExFDZ5eDfn2eeKzOHbsB7KPlC6YZLWsihZlZAO2cbEd ofkC/DjPUL79TXmbRF+vr3YWoyuIiA8e5yS3R14PsLZI9wuBP1xmf/HitffjEU3Ir/pY zNemTAWZTIIwoqizc8jCYPllza9jtqLFLXIfoxyRs4LcjnkQztTAko9OB9YR2HMjMXpd CPfvlhmiw5GKlotb0wH7Q7I8W5OBjetAFTPtTkDIJ7nM9afoeRdoLwPLWOBa9gWuEZXc JXxAk6sCvbfVk+BqEzPf6MTBTJIt0cmeXtZhVLJnqGBGTZC3TjhJ5Fk7Oy6hMOrR5y5b qP0Q== 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=MOkUwfmG; 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 i2si11641011pfe.239.2019.06.24.09.27.18; Mon, 24 Jun 2019 09:27:19 -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=MOkUwfmG; 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 212A07E096; Mon, 24 Jun 2019 16:27:16 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by mail.openembedded.org (Postfix) with ESMTP id A65477C5F0 for ; Mon, 24 Jun 2019 16:27:14 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id c66so4763wmf.0 for ; Mon, 24 Jun 2019 09:27:15 -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=Kihgc3vEQmjc2Ew/QrU6JS1R2IR6GYXhVF02Pl+ahrA=; b=MOkUwfmGT55IdGfwh7Fza5TT2qT4tkHXk49nm6carcsyp9hrIphTxHDBkhHY0CCWo1 K0mGrU0olJR7VrNIRjgIVhukaLBZqAkQL/oM7t9pZL6ynj8Bl9qr8dkPSZdB+Ga86hMC vyb0cb9yDofnwyxqjZoX23cimfkSiVWHC8ktZmMauERDur7tQSG6hvC0OyLeqp3kme7M uvysoc+S4i/77NwHd4LbBT9BGw2yqrBi5d/1F04m8gSiT/LZCxogKWNbW0NBGr/rAVlB hR0xu8zWGpVtFvO0J0XE5E+PJOuNYT/lg3KV/w54ejyDFO+47q+FQeJjGRVCI7g4PGEv o0fA== 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=Kihgc3vEQmjc2Ew/QrU6JS1R2IR6GYXhVF02Pl+ahrA=; b=SA1D2PGFDC6Yf2Dp+wys74b7BGN7WMyTQRB9tDIKiXWx4JYEHu680GvqcXBPn5VVNZ 3usX7qgBKbrH9ftoeAKVPh6n23mPl6BiuuumEOnTIb0drUR3tF4UTDZhiAkpq9JqHr83 edmh25TtttVIE2PhN1K+p+K9GEWumSuEFCMCooOQ4n+SDQ9neszU0ZAdcEo1QQ4Bx54Y jvWtPPS2KJCcyIVwFlJncP0i53/ZNpv43SbspY54sJ7/f/+y7Fsdbl/jcQp873/JJR3Q 9B9teOJNUyAUCZQgc5aHL4db6cOQCuNcUjWzFDjmHHj+zk2/zuxiNtesmSGUXXa4+uYG v7vw== X-Gm-Message-State: APjAAAXajNNH7vwPMiXOeQZ+a6AO2MclTx7JxdcrbfIiagVM8lb/U/C2 zfD+a2LOTgkrydKC7Z/mCN6WR2SBgRM= X-Received: by 2002:a1c:f512:: with SMTP id t18mr16280468wmh.47.1561393634988; Mon, 24 Jun 2019 09:27:14 -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 r5sm24685949wrg.10.2019.06.24.09.27.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jun 2019 09:27:14 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Mon, 24 Jun 2019 17:27:11 +0100 Message-Id: <20190624162711.3879-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] gtk-icon-cache: rename intercept to update_gtk_icon_cache 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 The intercept is called update_icon_cache which is vague: rename to update_gtk_icon_cache to make it clearer what it is for, and add a comment explaining what class caused it to be used. Signed-off-by: Ross Burton --- meta/classes/gtk-icon-cache.bbclass | 4 ++-- .../postinst-intercepts/{update_icon_cache => update_gtk_icon_cache} | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) rename scripts/postinst-intercepts/{update_icon_cache => update_gtk_icon_cache} (76%) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk-icon-cache.bbclass index 66fe781bd2c..91cb4ad4090 100644 --- a/meta/classes/gtk-icon-cache.bbclass +++ b/meta/classes/gtk-icon-cache.bbclass @@ -6,7 +6,7 @@ PACKAGE_WRITE_DEPS += "gtk+3-native gdk-pixbuf-native" gtk_icon_cache_postinst() { if [ "x$D" != "x" ]; then - $INTERCEPT_DIR/postinst_intercept update_icon_cache ${PKG} \ + $INTERCEPT_DIR/postinst_intercept update_gtk_icon_cache ${PKG} \ mlprefix=${MLPREFIX} \ libdir_native=${libdir_native} else @@ -24,7 +24,7 @@ fi gtk_icon_cache_postrm() { if [ "x$D" != "x" ]; then - $INTERCEPT_DIR/postinst_intercept update_icon_cache ${PKG} \ + $INTERCEPT_DIR/postinst_intercept update_gtk_icon_cache ${PKG} \ mlprefix=${MLPREFIX} \ libdir=${libdir} else diff --git a/scripts/postinst-intercepts/update_icon_cache b/scripts/postinst-intercepts/update_gtk_icon_cache similarity index 76% rename from scripts/postinst-intercepts/update_icon_cache rename to scripts/postinst-intercepts/update_gtk_icon_cache index 212209a9daf..99367a2855a 100644 --- a/scripts/postinst-intercepts/update_icon_cache +++ b/scripts/postinst-intercepts/update_gtk_icon_cache @@ -2,10 +2,11 @@ # # SPDX-License-Identifier: MIT # +# Post-install intercept for gtk-icon-cache.bbclass set -e -# update native pixbuf loaders +# Update native pixbuf loaders $STAGING_DIR_NATIVE/${libdir_native}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache for icondir in $D/usr/share/icons/*/ ; do