summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <rhill@gentoo.org>2008-01-05 00:47:39 +0000
committerRyan Hill <rhill@gentoo.org>2008-01-05 00:47:39 +0000
commitccf6dce04002c1ce9e9981a55a5b9c86d4048f20 (patch)
treecb8a7e92226a90d6e5c205fa9668915daa1b4512 /games-puzzle/londonlaw/files/londonlaw-0.2.1-wxversion.patch
parentmedia-video/fenice and media-video/nemesi p.mask (diff)
downloadhistorical-ccf6dce04002c1ce9e9981a55a5b9c86d4048f20.tar.gz
historical-ccf6dce04002c1ce9e9981a55a5b9c86d4048f20.tar.bz2
historical-ccf6dce04002c1ce9e9981a55a5b9c86d4048f20.zip
Add patch to force wxpython 2.6 at runtime to prevent errors with multiple
version installs. (Bug #204347) Package-Manager: portage-2.1.4_rc14
Diffstat (limited to 'games-puzzle/londonlaw/files/londonlaw-0.2.1-wxversion.patch')
-rw-r--r--games-puzzle/londonlaw/files/londonlaw-0.2.1-wxversion.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/games-puzzle/londonlaw/files/londonlaw-0.2.1-wxversion.patch b/games-puzzle/londonlaw/files/londonlaw-0.2.1-wxversion.patch
new file mode 100644
index 000000000000..b323639afcd0
--- /dev/null
+++ b/games-puzzle/londonlaw/files/londonlaw-0.2.1-wxversion.patch
@@ -0,0 +1,15 @@
+--- londonlaw-0.2.1/londonlaw/guiclient/__init__.py 2005-07-05 18:45:05.000000000 -0600
++++ /usr/lib/python2.5/site-packages/londonlaw/guiclient/__init__.py 2008-01-04 17:13:46.000000000 -0600
+@@ -23,6 +23,12 @@
+
+ from twisted.internet import protocol, reactor
+ from twisted.python import log
++try:
++ import wxversion
++ wxversion.select("2.6")
++except Exception, e:
++ print >> sys.stderr, "%s: wxPython 2.6 not installed." %e
++ sys.exit(1)
+ from wxPython.wx import *
+ from ConnectWindow import *
+ from GameListWindow import *