1 |
dirtyepic 07/12/07 00:04:33 |
2 |
|
3 |
Added: mattricks-0.7-wxversion.patch |
4 |
Log: |
5 |
Use wxversion to force wxpython-2.6 when multiple slots are available. Bug |
6 |
201317. |
7 |
(Portage version: 2.1.4_rc7) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 games-util/mattricks/files/mattricks-0.7-wxversion.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-util/mattricks/files/mattricks-0.7-wxversion.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-util/mattricks/files/mattricks-0.7-wxversion.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: mattricks-0.7-wxversion.patch |
16 |
=================================================================== |
17 |
diff -Naur Mattricks-0.7-orig/Mattricks/Commonwx.py Mattricks-0.7/Mattricks/Commonwx.py |
18 |
--- Mattricks-0.7-orig/Mattricks/Commonwx.py 2004-04-15 06:20:07.000000000 -0600 |
19 |
+++ Mattricks-0.7/Mattricks/Commonwx.py 2007-12-04 21:05:15.000000000 -0600 |
20 |
@@ -17,6 +17,13 @@ |
21 |
# along with this program; if not, write to the Free Software |
22 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 |
|
24 |
+try: |
25 |
+ import wxversion |
26 |
+ wxversion.select("2.6") |
27 |
+except Exception, e: |
28 |
+ print >> sys.stderr, "%s: wxPython 2.6 not installed." %e |
29 |
+ sys.exit(1) |
30 |
+ |
31 |
from wxPython.wx import * |
32 |
from Common import * |
33 |
|
34 |
|
35 |
|
36 |
|
37 |
-- |
38 |
gentoo-commits@g.o mailing list |