summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2010-04-26 10:27:00 +0000
committerAlfredo Tupone <tupone@gentoo.org>2010-04-26 10:27:00 +0000
commit315fd5437bf77fb5f10fd950d098f3e827b579dc (patch)
treeb81ca1a46558d41cf5f231d89392541a8db1840e /games-kids/childsplay/files
parentFix parallel make failure wrt #293541 by Ed Catmur. (diff)
downloadgentoo-2-315fd5437bf77fb5f10fd950d098f3e827b579dc.tar.gz
gentoo-2-315fd5437bf77fb5f10fd950d098f3e827b579dc.tar.bz2
gentoo-2-315fd5437bf77fb5f10fd950d098f3e827b579dc.zip
Force python2 fixing bug #312251
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'games-kids/childsplay/files')
-rw-r--r--games-kids/childsplay/files/childsplay-0.90.2-gentoo.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/games-kids/childsplay/files/childsplay-0.90.2-gentoo.patch b/games-kids/childsplay/files/childsplay-0.90.2-gentoo.patch
new file mode 100644
index 000000000000..742e3e02ee3c
--- /dev/null
+++ b/games-kids/childsplay/files/childsplay-0.90.2-gentoo.patch
@@ -0,0 +1,21 @@
+--- letters-trans.py.old 2010-04-26 12:13:12.000000000 +0200
++++ letters-trans.py 2010-04-26 12:13:49.000000000 +0200
+@@ -39,7 +39,7 @@
+ import os,fnmatch,operator,sys,locale
+ from CPConstants import ASSETMLROOT
+
+-if os.environ['USER'] != 'root':
++if os.environ['LOGNAME'] != 'root':
+ print "\nOnly root can use this script, sorry.\n"
+ sys.exit(1)
+
+@@ -69,7 +69,8 @@
+ sys.exit(0)
+
+ # get description names from memory assetml, these are the words used by letters.py
+-parser = pyassetml.AssetmlParser('childsplay/memory-136x136/memory-136x136.assetml')
++assetmlfile = os.path.join(cwd,'memory-136x136.assetml')
++parser = pyassetml.AssetmlParser(assetmlfile)
+ loc = parser.get_locale()# get current locale setting, only the first two chars !!
+ wlist_org = parser.find_names((('file','.'),('description',"en")))
+ wlist = parser.find_names((('file','.'),('description',loc)))