[gnome-initial-setup] welcome-tour: Don't do anything if we don't have yelp



commit ab510d50de925069b312909d36096edb596b1a61
Author: Colin Walters <walters verbum org>
Date:   Fri Apr 5 14:36:43 2013 -0400

    welcome-tour: Don't do anything if we don't have yelp
    
    As happens in gnome-ostree currently, and if someone uses rpm -e or
    whatever.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697050

 data/gnome-welcome-tour |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/data/gnome-welcome-tour b/data/gnome-welcome-tour
index fcb9cd3..8416f76 100755
--- a/data/gnome-welcome-tour
+++ b/data/gnome-welcome-tour
@@ -9,6 +9,12 @@ lang=`echo $locale | sed -e 's/_.*//'`
 
 rm -f $cfgdir/run-welcome-tour
 
+# Don't do anything if yelp isn't installed
+yelp_path=$(which yelp 2>/dev/null)
+if test -z "${yelp_path}"; then
+    exit
+fi
+
 if [ ! -d $cfgdir/yelp ]; then
         mkdir $cfgdir/yelp
         cat <<EOF >>$cfgdir/yelp/yelp.cfg


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