[gnome-continuous] triggers/dconf: Avoid erroring out if /etc/dconf/db doesn't exist



commit 646309f4416980347c62bf25a3c63b79250a08ca
Author: Colin Walters <walters verbum org>
Date:   Tue Jan 14 09:37:56 2014 -0500

    triggers/dconf: Avoid erroring out if /etc/dconf/db doesn't exist
    
    As of
    https://git.gnome.org/browse/dconf/commit/?id=c211fc46496597c7ddabd73d623bae4037754916
    dconf will error out if we don't yet have anything in /etc/dconf/db,
    so don't run the trigger in that case.

 src/triggers/0020dconf.trigger |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/triggers/0020dconf.trigger b/src/triggers/0020dconf.trigger
index 620d4e0..7d8ac71 100755
--- a/src/triggers/0020dconf.trigger
+++ b/src/triggers/0020dconf.trigger
@@ -18,6 +18,6 @@
 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 # Boston, MA 02111-1307, USA.
 
-if test -x "$(which dconf 2>/dev/null)"; then
+if test -x "$(which dconf 2>/dev/null)" && test -d /etc/dconf/db; then
     exec dconf update
 fi


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]