[ostree] triggers: Test for gconftool-2
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] triggers: Test for gconftool-2
- Date: Fri, 13 Apr 2012 21:16:28 +0000 (UTC)
commit 920cbbc24293353273717e5d29a716a9baa1de9a
Author: Colin Walters <walters verbum org>
Date: Fri Apr 13 16:11:03 2012 -0400
triggers: Test for gconftool-2
This was done for the rest of the triggers.
src/triggers/triggers.d/0050gconf.trigger | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/src/triggers/triggers.d/0050gconf.trigger b/src/triggers/triggers.d/0050gconf.trigger
index 8b4df90..03b73fb 100755
--- a/src/triggers/triggers.d/0050gconf.trigger
+++ b/src/triggers/triggers.d/0050gconf.trigger
@@ -18,12 +18,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
-# IfExecutable: gconftool-2
-# LiteralMatch: /etc/gconf
-
-GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
-export GCONF_CONFIG_SOURCE
-
-for f in /etc/gconf/schemas/*.schemas; do
- gconftool-2 --makefile-install-rule "$f"
-done
+if test -x "$(which gconftool-2 2>/dev/null)"; then
+ GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+ export GCONF_CONFIG_SOURCE
+ for f in /etc/gconf/schemas/*.schemas; do
+ gconftool-2 --makefile-install-rule "$f"
+ done
+fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]