[gnome-initial-setup] welcome-tour: Don't do anything if we don't have yelp
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] welcome-tour: Don't do anything if we don't have yelp
- Date: Fri, 5 Apr 2013 19:43:35 +0000 (UTC)
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]