Patchwork [2/2] pango: create /etc/pango in module postinsts if it's missing

login
register
mail settings
Submitter Koen Kooi
Date Jan. 17, 2012, 10:19 a.m.
Message ID <1326795583-22661-2-git-send-email-koen@dominion.thruhere.net>
Download mbox | patch
Permalink /patch/19571/
State Accepted
Commit 1b24f76bae9612bc69fb0afeaccb06c5e5746ce6
Headers show

Comments

Koen Kooi - Jan. 17, 2012, 10:19 a.m.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 meta/recipes-graphics/pango/pango.inc       |    3 +++
 meta/recipes-graphics/pango/pango_1.28.4.bb |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
Khem Raj - Jan. 17, 2012, 10:22 p.m.
On Tue, Jan 17, 2012 at 2:19 AM, Koen Kooi <koen@dominion.thruhere.net> wrote:
>
> +if ! [ -e $D${sysconfdir}/pango ] ; then
> +       mkdir -p $D${sysconfdir}/pango
> +fi
>  }

when you are using mkdir -p then why enclose it in if-fi

Patch

diff --git a/meta/recipes-graphics/pango/pango.inc b/meta/recipes-graphics/pango/pango.inc
index bf528f4..ce8b6ba 100644
--- a/meta/recipes-graphics/pango/pango.inc
+++ b/meta/recipes-graphics/pango/pango.inc
@@ -44,6 +44,9 @@  if [ "x$D" != "x" ]; then
   exit 1
 fi
 
+if ! [ -e $D${sysconfdir}/pango ] ; then
+	mkdir -p $D${sysconfdir}/pango
+fi
 }
 
 python populate_packages_prepend () {
diff --git a/meta/recipes-graphics/pango/pango_1.28.4.bb b/meta/recipes-graphics/pango/pango_1.28.4.bb
index 5778c3f..9681f9e 100644
--- a/meta/recipes-graphics/pango/pango_1.28.4.bb
+++ b/meta/recipes-graphics/pango/pango_1.28.4.bb
@@ -2,7 +2,7 @@  require pango.inc
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7"
 
-PR = "r5"
+PR = "r6"
 
 SRC_URI += "file://no-tests.patch"
 SRC_URI += "file://noconst.patch"