diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-02-08 18:46:18 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-02-08 18:46:18 +0000 |
commit | b3b0dfd4ee2c3d7bbaf8b5f8fe03ac308ca3af94 (patch) | |
tree | 259aebb677e2114dfd27d7765da8244f76ef6f13 | |
parent | 466c43f61bbdb24c5ba775214f8d041e77bef70b (diff) | |
download | cliapp-0.25.2.tar.gz |
Fix bug and release version 0.25.2.cliapp-0.25.2
-rw-r--r-- | NEWS | 6 | ||||
-rw-r--r-- | cliapp/__init__.py | 2 | ||||
-rw-r--r-- | cliapp/app.py | 8 | ||||
-rw-r--r-- | debian/changelog | 6 |
4 files changed, 20 insertions, 2 deletions
@@ -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. |