From 4261f861d16aefba12529daa5e3ab94137aa528db8959b4504546e9767138f43 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Tue, 13 Aug 2013 11:05:29 +0000 Subject: [PATCH] Accepting request 186919 from home:dirkmueller:branches:devel:languages:python - update to 0.6.6: * include editor search stderr fix OBS-URL: https://build.opensuse.org/request/show/186919 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=11 --- cmd2-0.6.5.1.tar.gz | 3 --- cmd2-0.6.6.tar.gz | 3 +++ fix_editor_stderr.patch | 23 ----------------------- python-cmd2.changes | 6 ++++++ python-cmd2.spec | 4 +--- 5 files changed, 10 insertions(+), 29 deletions(-) delete mode 100644 cmd2-0.6.5.1.tar.gz create mode 100644 cmd2-0.6.6.tar.gz delete mode 100644 fix_editor_stderr.patch diff --git a/cmd2-0.6.5.1.tar.gz b/cmd2-0.6.5.1.tar.gz deleted file mode 100644 index 5245434..0000000 --- a/cmd2-0.6.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:20474c5ff69e6ab4a38da29f2f1368126c9dc904f21d79e001663b9047ecb794 -size 21180 diff --git a/cmd2-0.6.6.tar.gz b/cmd2-0.6.6.tar.gz new file mode 100644 index 0000000..4500105 --- /dev/null +++ b/cmd2-0.6.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:538a9b129e7f4fc88ee15f320e02e7b514f80a4ebe539e8922638a6cb739fff8 +size 20533 diff --git a/fix_editor_stderr.patch b/fix_editor_stderr.patch deleted file mode 100644 index 336c85b..0000000 --- a/fix_editor_stderr.patch +++ /dev/null @@ -1,23 +0,0 @@ -# HG changeset patch -# User desaintmartin -# 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'}, diff --git a/python-cmd2.changes b/python-cmd2.changes index ce7b1a8..3756582 100644 --- a/python-cmd2.changes +++ b/python-cmd2.changes @@ -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 diff --git a/python-cmd2.spec b/python-cmd2.spec index 5136954..ead759f 100644 --- a/python-cmd2.spec +++ b/python-cmd2.spec @@ -17,14 +17,13 @@ Name: python-cmd2 -Version: 0.6.5.1 +Version: 0.6.6 Release: 0 Summary: Extra features for standard library's cmd module License: MIT 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 @@ -57,7 +56,6 @@ Drop-in replacement adds several features for command-prompt tools: %setup -q -n cmd2-%{version} chmod -x README.txt sed -i "s/\r//g" README.txt -%patch0 -p1 %build python setup.py build