From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Www0u-0001Sp-8K for ptxdist@pengutronix.de; Tue, 17 Jun 2014 18:13:42 +0200 Received: by mail-wi0-f170.google.com with SMTP id cc10so7193649wib.1 for ; Tue, 17 Jun 2014 09:13:30 -0700 (PDT) From: Alexander Aring Date: Tue, 17 Jun 2014 18:13:21 +0200 Message-Id: <1403021601-8244-4-git-send-email-alex.aring@gmail.com> In-Reply-To: <1403021601-8244-1-git-send-email-alex.aring@gmail.com> References: <1403021601-8244-1-git-send-email-alex.aring@gmail.com> Subject: [ptxdist] [PATCH v4 4/4] xorg-fonts: fix possible error handling Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Alexander Aring This patch fix possible error handling if a directory doesn't exist. Signed-off-by: Alexander Aring --- rules/xorg-fonts.make | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/xorg-fonts.make b/rules/xorg-fonts.make index 8ee8468..b617897 100644 --- a/rules/xorg-fonts.make +++ b/rules/xorg-fonts.make @@ -71,7 +71,7 @@ $(STATEDIR)/xorg-fonts.targetinstall.post: @$(call install_fixup, xorg-fonts,AUTHOR,"Robert Schwebel ") @$(call install_fixup, xorg-fonts,DESCRIPTION,missing) - @cd $(XORG_FONTS_DIR_INSTALL); \ + @cd $(XORG_FONTS_DIR_INSTALL) && \ find . -type f | while read file; do \ $(call install_copy, xorg-fonts, 0, 0, 0644, \ $(XORG_FONTS_DIR_INSTALL)/$$file, \ @@ -81,7 +81,7 @@ ifdef PTXCONF_XORG_FONTS_FC_CACHE @$(call install_alternative, xorg-fonts, 0, 0, 0755, /etc/rc.once.d/fc-cache) endif ifdef PTXCONF_XORG_FONTS_QT4_LINKS - @cd $(XORG_FONTS_DIR_INSTALL); \ + @cd $(XORG_FONTS_DIR_INSTALL) && \ find . -type f | while read file; do \ name=`basename $$file`; \ $(call install_link, xorg-fonts, \ -- 2.0.0 -- ptxdist mailing list ptxdist@pengutronix.de