1 |
tupone 10/04/26 10:27:00 |
2 |
|
3 |
Added: childsplay-0.90.2-gentoo.patch |
4 |
Log: |
5 |
Force python2 fixing bug #312251 |
6 |
(Portage version: 2.1.8.3/cvs/Linux i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 games-kids/childsplay/files/childsplay-0.90.2-gentoo.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-kids/childsplay/files/childsplay-0.90.2-gentoo.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-kids/childsplay/files/childsplay-0.90.2-gentoo.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: childsplay-0.90.2-gentoo.patch |
15 |
=================================================================== |
16 |
--- letters-trans.py.old 2010-04-26 12:13:12.000000000 +0200 |
17 |
+++ letters-trans.py 2010-04-26 12:13:49.000000000 +0200 |
18 |
@@ -39,7 +39,7 @@ |
19 |
import os,fnmatch,operator,sys,locale |
20 |
from CPConstants import ASSETMLROOT |
21 |
|
22 |
-if os.environ['USER'] != 'root': |
23 |
+if os.environ['LOGNAME'] != 'root': |
24 |
print "\nOnly root can use this script, sorry.\n" |
25 |
sys.exit(1) |
26 |
|
27 |
@@ -69,7 +69,8 @@ |
28 |
sys.exit(0) |
29 |
|
30 |
# get description names from memory assetml, these are the words used by letters.py |
31 |
-parser = pyassetml.AssetmlParser('childsplay/memory-136x136/memory-136x136.assetml') |
32 |
+assetmlfile = os.path.join(cwd,'memory-136x136.assetml') |
33 |
+parser = pyassetml.AssetmlParser(assetmlfile) |
34 |
loc = parser.get_locale()# get current locale setting, only the first two chars !! |
35 |
wlist_org = parser.find_names((('file','.'),('description',"en"))) |
36 |
wlist = parser.find_names((('file','.'),('description',loc))) |