Accepting request 186934 from devel:languages:python
- update to 0.6.6: * include editor search stderr fix (forwarded request 186919 from dirkmueller) OBS-URL: https://build.opensuse.org/request/show/186934 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=7
This commit is contained in:
commit
9d63dd9478
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:20474c5ff69e6ab4a38da29f2f1368126c9dc904f21d79e001663b9047ecb794
|
|
||||||
size 21180
|
|
3
cmd2-0.6.6.tar.gz
Normal file
3
cmd2-0.6.6.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:538a9b129e7f4fc88ee15f320e02e7b514f80a4ebe539e8922638a6cb739fff8
|
||||||
|
size 20533
|
@ -1,23 +0,0 @@
|
|||||||
# HG changeset patch
|
|
||||||
# User desaintmartin <cedric@desaintmartin.fr>
|
|
||||||
# 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'},
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 13 10:01:07 UTC 2013 - dmueller@suse.com
|
||||||
|
|
||||||
|
- update to 0.6.6:
|
||||||
|
* include editor search stderr fix
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 25 15:35:32 UTC 2013 - dheidler@suse.de
|
Thu Jul 25 15:35:32 UTC 2013 - dheidler@suse.de
|
||||||
|
|
||||||
|
@ -17,14 +17,13 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-cmd2
|
Name: python-cmd2
|
||||||
Version: 0.6.5.1
|
Version: 0.6.6
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Extra features for standard library's cmd module
|
Summary: Extra features for standard library's cmd module
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://packages.python.org/cmd2/
|
Url: http://packages.python.org/cmd2/
|
||||||
Source: http://pypi.python.org/packages/source/c/cmd2/cmd2-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/c/cmd2/cmd2-%{version}.tar.gz
|
||||||
Patch0: fix_editor_stderr.patch
|
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
Requires: python-pyparsing
|
Requires: python-pyparsing
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -57,7 +56,6 @@ Drop-in replacement adds several features for command-prompt tools:
|
|||||||
%setup -q -n cmd2-%{version}
|
%setup -q -n cmd2-%{version}
|
||||||
chmod -x README.txt
|
chmod -x README.txt
|
||||||
sed -i "s/\r//g" README.txt
|
sed -i "s/\r//g" README.txt
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user