r5720 - in packages/trunk/funnyboat/debian: . patches
Gonéri LE BOUDER
goneri-guest at alioth.debian.org
Mon Feb 11 12:28:36 UTC 2008
Author: goneri-guest
Date: 2008-02-11 12:28:36 +0000 (Mon, 11 Feb 2008)
New Revision: 5720
Added:
packages/trunk/funnyboat/debian/patches/save-sshot-in-homedir.diff
Modified:
packages/trunk/funnyboat/debian/changelog
packages/trunk/funnyboat/debian/patches/series
Log:
add save-sshot-in-homedir.diff to save the screenshot in the user homedir (Closes: #465082)
Modified: packages/trunk/funnyboat/debian/changelog
===================================================================
--- packages/trunk/funnyboat/debian/changelog 2008-02-11 02:41:42 UTC (rev 5719)
+++ packages/trunk/funnyboat/debian/changelog 2008-02-11 12:28:36 UTC (rev 5720)
@@ -1,3 +1,11 @@
+funnyboat (1.5-4) unstable; urgency=low
+
+ [ Gonéri Le Bouder ]
+ * add save-sshot-in-homedir.diff to save the screenshot in the user homedir
+ (Closes: #465082)
+
+ -- Gonéri Le Bouder <goneri at rulezlan.org> Mon, 11 Feb 2008 13:47:15 +0100
+
funnyboat (1.5-3) unstable; urgency=low
[ Jon Dowland ]
Added: packages/trunk/funnyboat/debian/patches/save-sshot-in-homedir.diff
===================================================================
--- packages/trunk/funnyboat/debian/patches/save-sshot-in-homedir.diff (rev 0)
+++ packages/trunk/funnyboat/debian/patches/save-sshot-in-homedir.diff 2008-02-11 12:28:36 UTC (rev 5720)
@@ -0,0 +1,20 @@
+Index: game.py
+===================================================================
+--- game.py.orig
++++ game.py
+@@ -245,10 +245,13 @@
+
+ def take_screenshot(self):
+ i = 1
+- filename = "sshot.tga"
++ basedir = os.environ['HOME']
++ if not basedir:
++ basedir = '/home'
++ filename = basedir + "/funnyboat-sshot.tga"
+ while os.path.exists(filename):
+ i += 1
+- filename = "sshot" + str(i) + ".tga"
++ filename = filename + "/funnyboat-sshot" + str(i) + ".tga"
+
+ pygame.image.save(self.screen, filename)
+ print "Screenshot saved as " + filename
Modified: packages/trunk/funnyboat/debian/patches/series
===================================================================
--- packages/trunk/funnyboat/debian/patches/series 2008-02-11 02:41:42 UTC (rev 5719)
+++ packages/trunk/funnyboat/debian/patches/series 2008-02-11 12:28:36 UTC (rev 5720)
@@ -1 +1,2 @@
+save-sshot-in-homedir.diff -p0
use_debian_vera_ttf.diff -p0
More information about the Pkg-games-commits
mailing list