gnome-panel 2.32.1: adjust post-inst for new gconf-native
authorKoen Kooi <koen@dominion.thruhere.net>
Thu, 1 Dec 2011 17:46:50 +0000 (18:46 +0100)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:17:04 +0000 (08:17 -0800)
(From meta-openembedded rev: 3b1ce08ec2b38bdb96e768d6a38719e98fac1eb7)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-gnome/recipes-gnome/gnome-panel/gnome-panel_2.32.1.bb

index 78a6d47..4a07378 100644 (file)
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
 
 SECTION = "x11/gnome"
 
-PR = "r4"
+PR = "r5"
 
 DEPENDS = "gnome-doc-utils-native gconf glib-2.0 gnome-desktop gtk+ pango libwnck gnome-menus cairo libgweather dbus-glib librsvg libcanberra" 
 
@@ -26,8 +26,11 @@ do_configure_prepend() {
 }
 
 pkg_postinst_append () {
-       gconftool-2 --config-source=xml:readwrite:/etc/gconf/gconf.xml.defaults \
-               --direct --load /etc/gconf/schemas/panel-default-setup.entries
+if [ -n "$D" ]; then
+       exit 1
+fi
+       gconftool-2 --config-source=xml:readwrite:${sysconfdir}/gconf/gconf.xml.defaults \
+               --direct --load ${sysconfdir}/gconf/schemas/panel-default-setup.entries
 }
 
 PACKAGES =+ "libpanel-applet"