Control: tags 759054 + patch

Dear maintainer,

I've attached a patch to update python-fs for wxPython 3.0.  I've
tested the rebuilt package by running 'pstree -g'.

I'm happy to NMU this change - just let me know.

Cheers,
    Olly
diff -Nru python-fs-0.4.0/debian/changelog python-fs-0.4.0/debian/changelog
--- python-fs-0.4.0/debian/changelog	2014-02-24 11:00:56.000000000 -0300
+++ python-fs-0.4.0/debian/changelog	2014-09-07 00:59:41.000000000 -0300
@@ -1,3 +1,11 @@
+python-fs (0.4.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Update for wxPython 3.0 (Closes: #759054):
+    - New patch: wxpython3.0.patch
+
+ -- Olly Betts <o...@survex.com>  Sun, 07 Sep 2014 03:59:39 +0000
+
 python-fs (0.4.0-1) unstable; urgency=low
 
   [ Janos Guljas ]
diff -Nru python-fs-0.4.0/debian/control python-fs-0.4.0/debian/control
--- python-fs-0.4.0/debian/control	2014-02-24 10:59:25.000000000 -0300
+++ python-fs-0.4.0/debian/control	2014-09-07 00:59:35.000000000 -0300
@@ -28,7 +28,7 @@
 
 Package: python-fs-browser
 Architecture: all
-Depends: python-fs, python-wxgtk2.8, ${misc:Depends}
+Depends: python-fs, python-wxgtk3.0, ${misc:Depends}
 Description: Python filesystem abstraction - Gtk browser
  Pyfilesystem is a Python module that provides a common interface to many types
  of filesystem, and provides some powerful features such as exposing
diff -Nru python-fs-0.4.0/debian/patches/series python-fs-0.4.0/debian/patches/series
--- python-fs-0.4.0/debian/patches/series	1969-12-31 21:00:00.000000000 -0300
+++ python-fs-0.4.0/debian/patches/series	2014-09-07 00:44:34.000000000 -0300
@@ -0,0 +1 @@
+wxpython3.0.patch
diff -Nru python-fs-0.4.0/debian/patches/wxpython3.0.patch python-fs-0.4.0/debian/patches/wxpython3.0.patch
--- python-fs-0.4.0/debian/patches/wxpython3.0.patch	1969-12-31 21:00:00.000000000 -0300
+++ python-fs-0.4.0/debian/patches/wxpython3.0.patch	2014-09-07 00:44:57.000000000 -0300
@@ -0,0 +1,20 @@
+Description: Update for wxPython 3.0
+Author: Olly Betts <o...@survex.com>
+Bug-Debian: https://bugs.debian.org/759054
+Forwarded: no
+Last-Update: 2014-09-07
+
+--- python-fs-0.4.0.orig/fs/browsewin.py
++++ python-fs-0.4.0/fs/browsewin.py
+@@ -187,7 +187,10 @@ def browse(fs, hide_dotfiles=False):
+ 
+     """
+ 
+-    app = wx.PySimpleApp()
++    class PySimpleApp(wx.App):
++        def OnInit(self):
++            return True
++    app = PySimpleApp()
+     frame = BrowseFrame(fs, hide_dotfiles=hide_dotfiles)
+     frame.Show()
+     app.MainLoop()

Reply via email to