r2264 - packages/trunk/teg/debian

Gonéri Le Bouder goneri-guest at alioth.debian.org
Fri Jan 5 16:57:18 CET 2007


Author: goneri-guest
Date: 2007-01-05 16:57:17 +0100 (Fri, 05 Jan 2007)
New Revision: 2264

Added:
   packages/trunk/teg/debian/tegclient.sh
Modified:
   packages/trunk/teg/debian/changelog
   packages/trunk/teg/debian/rules
Log:
add tegclient.sh to check theme setting to avoid crash (Closes: #281164)


Modified: packages/trunk/teg/debian/changelog
===================================================================
--- packages/trunk/teg/debian/changelog	2007-01-05 14:59:22 UTC (rev 2263)
+++ packages/trunk/teg/debian/changelog	2007-01-05 15:57:17 UTC (rev 2264)
@@ -6,6 +6,7 @@
    - add quilt in builddep
   * add improve_spanish_translation.diff: Spanish PO file corrections from  
   Carlos Galisteo (Closes: #405608)
+  * add tegclient.sh to check theme setting to avoid crash (Closes: #281164) 
 
  -- Gonéri Le Bouder <goneri at rulezlan.org>  Sun, 16 Jul 2006 23:35:20 +0200
 

Modified: packages/trunk/teg/debian/rules
===================================================================
--- packages/trunk/teg/debian/rules	2007-01-05 14:59:22 UTC (rev 2263)
+++ packages/trunk/teg/debian/rules	2007-01-05 15:57:17 UTC (rev 2264)
@@ -24,7 +24,7 @@
 	dh_testdir
 	QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
 	./configure --prefix=/usr \
-		--bindir=/usr/games \
+		--bindir=/usr/lib/teg \
 		--sysconfdir=/etc \
 		--datadir=/usr/share/games/teg \
 		--disable-ggz
@@ -54,6 +54,8 @@
 	$(MAKE) install DESTDIR=$(CURDIR)/debian/teg
 	rm -rf $(CURDIR)/debian/teg/usr/share/pixmaps/teg_pix
 	dh_install debian/teg.xpm /usr/share/pixmaps
+	cp debian/tegclient.sh $(CURDIR)/debian/teg/usr/games/tegclient
+	chmod 755 $(CURDIR)/debian/teg/usr/games/tegclient
 
 # Build architecture-independent files here.
 binary-indep: build install

Added: packages/trunk/teg/debian/tegclient.sh
===================================================================
--- packages/trunk/teg/debian/tegclient.sh	2007-01-05 14:59:22 UTC (rev 2263)
+++ packages/trunk/teg/debian/tegclient.sh	2007-01-05 15:57:17 UTC (rev 2264)
@@ -0,0 +1,21 @@
+#!/bin/sh
+# Gonéri Le Bouder <goneri at rulezlan.org>
+# See http://bugs.debian.org/281164
+
+DEFAULT=""m2
+THEME=`gconftool-2 --get /apps/teg/theme`
+
+if [ "$THEME" = "" ]; then
+	NEEDTOFIX=1
+fi
+
+if [ "`ls /usr/share/games/teg/pixmaps/teg_pix/themes|grep "$THEME"`" = "" ]; then
+	NEEDTOFIX=1
+fi
+
+if [ "$NEEDTOFIX" = "1" ]; then
+	echo "fixing default theme"
+	gconftool-2 --type string --set /apps/teg/theme $DEFAULT 
+fi
+
+exec /usr/games/tegclient




More information about the Pkg-games-commits mailing list