[openlmi-tools] fix non-interactive formatter

Peter Hatina phatina at fedoraproject.org
Wed Sep 3 08:43:36 UTC 2014


commit e03b7d7f8bbdb29ed9d350885faa9fb140dba057
Author: Peter Hatina <phatina at redhat.com>
Date:   Wed Sep 3 10:12:38 2014 +0200

    fix non-interactive formatter

 openlmi-tools-01-formatter.patch |   19 +++++++++++++++++++
 openlmi-tools.spec               |    7 ++++++-
 2 files changed, 25 insertions(+), 1 deletions(-)
---
diff --git a/openlmi-tools-01-formatter.patch b/openlmi-tools-01-formatter.patch
new file mode 100644
index 0000000..75ecdc9
--- /dev/null
+++ b/openlmi-tools-01-formatter.patch
@@ -0,0 +1,19 @@
+commit 2354ffe8127a7a2ea2a3136a738fb001d0ccab31
+Author: Peter Hatina <phatina at redhat.com>
+Date:   Wed Sep 3 10:02:03 2014 +0200
+
+    fix non-interactive LMIFormatter.fancy_format()
+
+diff --git a/cli/lmi/shell/LMIFormatter.py b/cli/lmi/shell/LMIFormatter.py
+index 01885e5..2e9934f 100644
+--- a/cli/lmi/shell/LMIFormatter.py
++++ b/cli/lmi/shell/LMIFormatter.py
+@@ -145,7 +145,7 @@ class LMIFormatter(object):
+             subprocess.call(subprocess_params)
+             os.remove(tmpfile[1])
+         else:
+-            self.format(0, 0, self._width)
++            self.format(0, self._width)
+ 
+ 
+ class LMIMethodFormatter(LMIFormatter):
diff --git a/openlmi-tools.spec b/openlmi-tools.spec
index d2ebc20..d791ab1 100644
--- a/openlmi-tools.spec
+++ b/openlmi-tools.spec
@@ -1,11 +1,12 @@
 Name:           openlmi-tools
 Version:        0.10.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Set of CLI tools for Openlmi providers
 
 License:        GPLv2+
 URL:            http://fedorahosted.org/openlmi
 Source0:        http://fedorahosted.org/released/openlmi-tools/%{name}-%{version}.tar.gz
+Patch0:         openlmi-tools-01-formatter.patch
 BuildArch:      noarch
 
 BuildRequires:  automake
@@ -44,6 +45,7 @@ Group:          Documentation
 
 %prep
 %setup -q
+%patch0 -p1 -b .formatter
 
 %build
 make
@@ -116,6 +118,9 @@ install -m 644 cli/completion/_lmishell $zsh_comp_dir
 %{_docdir}/%{name}-%{version}/html
 
 %changelog
+* Wed Sep  3 2014 Peter Hatina <phatina at redhat.com> - 0.10.1-2
+- fix non-interactive formatter
+
 * Mon Sep  1 2014 Peter Hatina <phatina at redhat.com> - 0.10.1-1
 - upgrate to 0.10.1
 


More information about the scm-commits mailing list