summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2005-04-19 01:52:00 +0000
committerPhil Blundell <philb@gnu.org>2005-04-19 01:52:00 +0000
commit85ed9b54738e7445c77bbe912bdeabc4e13a89a4 (patch)
tree36f9431be4ebc65bde0d8d1259545c935f93c5ac
parentbb21288ac057813247fac4e593747bde541cab98 (diff)
add check for offline mode to pango derivative postinsts
BKrev: 42646440IvvBJF2ThFaS4b4g0v_4ZQ
-rw-r--r--packages/pango/pango_1.8.0.bb13
1 files changed, 11 insertions, 2 deletions
diff --git a/packages/pango/pango_1.8.0.bb b/packages/pango/pango_1.8.0.bb
index 3a81953256..081dd7d158 100644
--- a/packages/pango/pango_1.8.0.bb
+++ b/packages/pango/pango_1.8.0.bb
@@ -5,7 +5,7 @@ DEPENDS = "glib-2.0 fontconfig freetype zlib x11 libxft xt gtk-doc"
DESCRIPTION = "The goal of the Pango project is to provide an \
Open Source framework for the layout and rendering of \
internationalized text."
-PR = "r1"
+PR = "r2"
# seems to go wrong with default cflags
FULL_OPTIMIZATION_arm = "-O2"
@@ -31,8 +31,17 @@ do_stage () {
install -m 0644 ${S}/pango/pango*.h ${STAGING_INCDIR}/pango/
}
+postinst_prologue() {
+if [ "x$D" != "x" ]; then
+ exit 1
+fi
+
+}
+
python populate_packages_prepend () {
+ prologue = bb.data.getVar("postinst_prologue", d, 1)
+
modules_root = bb.data.expand('${libdir}/pango/${LIBV}/modules', d)
- do_split_packages(d, modules_root, '^pango-(.*)\.so$', 'pango-module-%s', 'Pango module %s', 'pango-querymodules > /etc/pango/pango.modules')
+ do_split_packages(d, modules_root, '^pango-(.*)\.so$', 'pango-module-%s', 'Pango module %s', prologue + 'pango-querymodules > /etc/pango/pango.modules')
}