#! /bin/sh /usr/share/dpatch/dpatch-run ## 12_make_guis_use_2.4.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Change 2 guis to use wxPython 2.4, as they don't seem to work with 2.6. @DPATCH@ diff -urNad trunk~/btcompletedirgui.py trunk/btcompletedirgui.py --- trunk~/btcompletedirgui.py 2006-04-17 16:55:34.000000000 -0700 +++ trunk/btcompletedirgui.py 2006-04-17 16:56:31.000000000 -0700 @@ -19,6 +19,14 @@ import sys from os import getcwd from os.path import join + +try: + import wxversion + wxversion.select('2.4') +except: + print 'This program requires wxPython version 2.4 (python-wxgtk2.4 in Debian) be installed in order to run.' + sys.exit(1) + try: from wxPython.wx import * except: diff -urNad trunk~/btmaketorrentgui.py trunk/btmaketorrentgui.py --- trunk~/btmaketorrentgui.py 2006-04-17 16:55:34.000000000 -0700 +++ trunk/btmaketorrentgui.py 2006-04-17 16:56:31.000000000 -0700 @@ -21,6 +21,14 @@ import sys from os import getcwd from os.path import join, isdir + +try: + import wxversion + wxversion.select('2.4') +except: + print 'This program requires wxPython version 2.4 (python-wxgtk2.4 in Debian) be installed in order to run.' + sys.exit(1) + try: from wxPython.wx import * except: