[Python-apps-commits] r2707 - in packages/lfm/trunk/debian (2 files)

dktrkranz-guest at users.alioth.debian.org dktrkranz-guest at users.alioth.debian.org
Tue Apr 7 21:48:04 UTC 2009


    Date: Tuesday, April 7, 2009 @ 21:48:03
  Author: dktrkranz-guest
Revision: 2707

Catch exceptions if curs_set attribute is not available

Added:
  packages/lfm/trunk/debian/patches/02_curs_set.patch
Modified:
  packages/lfm/trunk/debian/changelog

Modified: packages/lfm/trunk/debian/changelog
===================================================================
--- packages/lfm/trunk/debian/changelog	2009-04-07 21:38:32 UTC (rev 2706)
+++ packages/lfm/trunk/debian/changelog	2009-04-07 21:48:03 UTC (rev 2707)
@@ -23,6 +23,8 @@
       setup.py file instead.
   * debian/patches/01_ignore_COPYING.patch:
     - Do not install COPYING file and remove its references from lfm.
+  * debian/patches/02_curs_set.patch:
+    - Catch exceptions if curs_set attribute is not available.
   * Provide debian/pyversions file.
   * Bump Standards-Version to 3.8.1:
     - Use Homepage field and adjust it to new location.
@@ -30,7 +32,7 @@
     - Provide debian/README.source to document simple-patchsys usage.
   * Provide a watch file.
 
- -- Luca Falavigna <dktrkranz at ubuntu.com>  Tue, 07 Apr 2009 23:34:28 +0200
+ -- Luca Falavigna <dktrkranz at ubuntu.com>  Tue, 07 Apr 2009 23:43:06 +0200
 
 lfm (0.91.2-1.1) unstable; urgency=low
 

Added: packages/lfm/trunk/debian/patches/02_curs_set.patch
===================================================================
--- packages/lfm/trunk/debian/patches/02_curs_set.patch	                        (rev 0)
+++ packages/lfm/trunk/debian/patches/02_curs_set.patch	2009-04-07 21:48:03 UTC (rev 2707)
@@ -0,0 +1,41 @@
+Catch exceptions if curs_set attribute is not available.
+
+diff -Nur -x '*.orig' -x '*~' lfm-2.1/lfm/pyview.py lfm-2.1.new/lfm/pyview.py
+--- lfm-2.1/lfm/pyview.py	2008-12-20 22:48:22.000000000 +0100
++++ lfm-2.1.new/lfm/pyview.py	2009-04-07 23:41:02.000000000 +0200
+@@ -116,7 +116,10 @@
+     def init_curses(self):
+         curses.cbreak()
+         curses.raw()
+-        curses.curs_set(0)
++        try:
++            curses.curs_set(0)
++        except:
++            pass
+         try:
+             self.win_title = curses.newwin(1, 0, 0, 0)
+             self.win_body = curses.newwin(app.maxh-2, 0, 1, 0)     # h, w, y, x
+@@ -253,7 +256,10 @@
+         self.maxh, self.maxw = self.win.getmaxyx()
+         curses.cbreak()
+         curses.raw()
+-        curses.curs_set(0)
++        try:
++            curses.curs_set(0)
++        except:
++            pass
+         try:
+             self.win_title = curses.newwin(1, 0, 0, 0)
+             self.win_file = curses.newwin(self.maxh-2, 0, 1, 0)     # h, w, y, x
+@@ -924,7 +930,10 @@
+                     os.system('sh')
+                 else:
+                     os.system('cd \"%s\"; sh' % os.path.dirname(self.file))
+-                curses.curs_set(0)
++                try:
++                    curses.curs_set(0)
++                except:
++                   pass
+                 self.show()
+ 
+             #  help




More information about the Python-apps-commits mailing list