summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-02-08 18:46:18 +0000
committerLars Wirzenius <liw@liw.fi>2012-02-08 18:46:18 +0000
commitb3b0dfd4ee2c3d7bbaf8b5f8fe03ac308ca3af94 (patch)
tree259aebb677e2114dfd27d7765da8244f76ef6f13
parent466c43f61bbdb24c5ba775214f8d041e77bef70b (diff)
downloadcliapp-0.25.2.tar.gz
Fix bug and release version 0.25.2.cliapp-0.25.2
-rw-r--r--NEWS6
-rw-r--r--cliapp/__init__.py2
-rw-r--r--cliapp/app.py8
-rw-r--r--debian/changelog6
4 files changed, 20 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 21c21a5..2a1171f 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,12 @@ NEWS for cliapp
===============
+Version 0.25.2, released 2012-02-08
+---------------------------------
+
+* Fixed another bug in the process pipelining support. This time it was
+ a silly Python optional argument handling problem.
+
Version 0.25.1, released 2012-02-08
---------------------------------
diff --git a/cliapp/__init__.py b/cliapp/__init__.py
index e3d5471..44fb34b 100644
--- a/cliapp/__init__.py
+++ b/cliapp/__init__.py
@@ -15,7 +15,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-__version__ = '0.25.1'
+__version__ = '0.25.2'
from settings import Settings
diff --git a/cliapp/app.py b/cliapp/app.py
index 52f3792..bfda1fb 100644
--- a/cliapp/app.py
+++ b/cliapp/app.py
@@ -414,7 +414,7 @@ class Application(object):
'''
- def runcmd(self, argv, ignore_fail=False, *args, **kwargs):
+ def runcmd(self, argv, *args, **kwargs):
'''Run external command or pipeline.
Example: ``runcmd(['grep', 'foo'], ['wc', '-l'],
@@ -428,6 +428,12 @@ class Application(object):
'''
+ if 'ignore_fail' in kwargs:
+ ignore_fail = kwargs['ignore_fail']
+ del kwargs['ignore_fail']
+ else:
+ ignore_fail = False
+
exit, out, err = self.runcmd_unchecked(argv, *args, **kwargs)
if exit != 0:
msg = 'Command failed: %s\n%s' % (' '.join(argv), err)
diff --git a/debian/changelog b/debian/changelog
index f81c192..f7626a7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+python-cliapp (0.25.2-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Lars Wirzenius <liw@liw.fi> Wed, 08 Feb 2012 18:45:56 +0000
+
python-cliapp (0.25.1-1) unstable; urgency=low
* New upstream release.