mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Aring <alex.aring@gmail.com>
To: ptxdist@pengutronix.de
Cc: Alexander Aring <alex.aring@gmail.com>
Subject: [ptxdist] [PATCH 4/4] xorg-fonts: fix possible error handling
Date: Tue, 17 Jun 2014 04:46:11 +0200	[thread overview]
Message-ID: <1402973171-25530-4-git-send-email-alex.aring@gmail.com> (raw)
In-Reply-To: <1402973171-25530-1-git-send-email-alex.aring@gmail.com>

This patch fix possible error handling if a directory doesn't exist.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
 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 <r.schwebel@pengutronix.de>")
 	@$(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

  parent reply	other threads:[~2014-06-17  2:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-17  2:46 [ptxdist] [PATCH v2 1/4] kbd: rework and version bump 1.15.2 -> 2.0.1 Alexander Aring
2014-06-17  2:46 ` [ptxdist] [PATCH v2 2/4] cmatrix: add new package Alexander Aring
2014-06-17  2:46 ` [ptxdist] [PATCH 3/4] svgalib: fix library permissions to 0644 Alexander Aring
2014-06-17  2:46 ` Alexander Aring [this message]
2014-06-17  3:11 ` [ptxdist] [PATCH v3 1/4] kbd: rework and version bump 1.15.2 -> 2.0.1 Alexander Aring
2014-06-17  8:12   ` Alexander Aring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1402973171-25530-4-git-send-email-alex.aring@gmail.com \
    --to=alex.aring@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox