From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id ACB5215838C for ; Thu, 25 Jan 2024 15:45:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6C783E2A94; Thu, 25 Jan 2024 15:45:01 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 17D23E2A8F for ; Thu, 25 Jan 2024 15:45:01 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 2/2] gnome2.eclass: Make gnome2_gdk_pixbuf_update call conditional Date: Thu, 25 Jan 2024 16:44:53 +0100 Message-ID: <20240125154453.22915-2-mgorny@gentoo.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240125154453.22915-1-mgorny@gentoo.org> References: <20240125154453.22915-1-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 95b8c5a9-e95b-42bf-b46a-6b996ba6324d X-Archives-Hash: e7197c001b06a93685ac99822085f23e Move the condition that checks the result of gnome2_gdk_pixbuf_savelist from inside gnome2_gdk_pixbuf_update to the postinst phase of gnome2.eclass. Signed-off-by: Michał Górny --- eclass/gnome2.eclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass index 00188fd7889c..66de2df97f9f 100644 --- a/eclass/gnome2.eclass +++ b/eclass/gnome2.eclass @@ -214,7 +214,9 @@ gnome2_pkg_postinst() { gnome2_schemas_update fi gnome2_scrollkeeper_update - gnome2_gdk_pixbuf_update + if [[ -n ${GNOME2_ECLASS_GDK_PIXBUF_LOADERS} ]]; then + gnome2_gdk_pixbuf_update + fi if [[ ${#GNOME2_ECLASS_GIO_MODULES[@]} -gt 0 ]]; then gnome2_giomodule_cache_update -- 2.43.0