Hello community,

here is the log from the commit of package python-cmd2 for openSUSE:Factory 
checked in at 2013-07-29 21:10:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cmd2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-cmd2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cmd2"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cmd2/python-cmd2.changes  2013-05-02 
11:34:46.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-cmd2.new/python-cmd2.changes     
2013-07-29 21:10:29.000000000 +0200
@@ -1,0 +2,5 @@
+Thu Jul 25 15:35:32 UTC 2013 - [email protected]
+
+- Backport editor stderr fix
+
+-------------------------------------------------------------------

New:
----
  fix_editor_stderr.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-cmd2.spec ++++++
--- /var/tmp/diff_new_pack.R5PoA1/_old  2013-07-29 21:10:29.000000000 +0200
+++ /var/tmp/diff_new_pack.R5PoA1/_new  2013-07-29 21:10:29.000000000 +0200
@@ -24,6 +24,7 @@
 Group:          Development/Languages/Python
 Url:            http://packages.python.org/cmd2/
 Source:         
http://pypi.python.org/packages/source/c/cmd2/cmd2-%{version}.tar.gz
+Patch0:         fix_editor_stderr.patch
 BuildRequires:  python-devel
 Requires:       python-pyparsing
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -56,6 +57,7 @@
 %setup -q -n cmd2-%{version}
 chmod -x README.txt
 sed -i "s/\r//g" README.txt
+%patch0 -p1
 
 %build
 python setup.py build

++++++ fix_editor_stderr.patch ++++++
# HG changeset patch
# User desaintmartin <[email protected]>
# Date 1369996392 0
# Branch desaintmartin/fixed-which-calls-being-verbose-to-stder-1369996337663
# Node ID 6743615a4a69908de97714e6673f14bfb96d3e6c
# Parent  a1818298610cb601c6ed5691531cd224ed59e6b5
Fixed "which" calls being verbose to stderr.
Add "vi" to the list of possible editors.

diff --git a/cmd2.py b/cmd2.py
--- a/cmd2.py
+++ b/cmd2.py
@@ -420,8 +420,8 @@
         if sys.platform[:3] == 'win':
             editor = 'notepad'
         else:
-            for editor in ['gedit', 'kate', 'vim', 'emacs', 'nano', 'pico']:
-                if subprocess.Popen(['which', editor], 
stdout=subprocess.PIPE).communicate()[0]:
+            for editor in ['gedit', 'kate', 'vim', 'vi', 'emacs', 'nano', 
'pico']:
+                if subprocess.Popen(['which', editor], stdout=subprocess.PIPE, 
stderr=subprocess.STDOUT).communicate()[0]:
                     break
 
     colorcodes =    {'bold':{True:'\x1b[1m',False:'\x1b[22m'},
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to