From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WwjPr-0006wS-Bi for ptxdist@pengutronix.de; Tue, 17 Jun 2014 04:46:33 +0200 Received: by mail-wi0-f174.google.com with SMTP id bs8so5036884wib.1 for ; Mon, 16 Jun 2014 19:46:25 -0700 (PDT) From: Alexander Aring Date: Tue, 17 Jun 2014 04:46:11 +0200 Message-Id: <1402973171-25530-4-git-send-email-alex.aring@gmail.com> In-Reply-To: <1402973171-25530-1-git-send-email-alex.aring@gmail.com> References: <1402973171-25530-1-git-send-email-alex.aring@gmail.com> Subject: [ptxdist] [PATCH 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