Hello community, here is the log from the commit of package python-cliff for openSUSE:Factory checked in at 2013-05-02 15:56:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-cliff (Old) and /work/SRC/openSUSE:Factory/.python-cliff.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cliff" Changes: -------- --- /work/SRC/openSUSE:Factory/python-cliff/python-cliff.changes 2013-05-02 11:33:13.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-cliff.new/python-cliff.changes 2013-05-02 15:56:07.000000000 +0200 @@ -1,0 +2,5 @@ +Thu May 2 10:42:04 UTC 2013 - dmuel...@suse.com + +- add 0001-Restore-compatibility-with-Prettytable-0.7.2.patch + +------------------------------------------------------------------- New: ---- 0001-Restore-compatibility-with-Prettytable-0.7.2.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-cliff.spec ++++++ --- /var/tmp/diff_new_pack.Lj3SgO/_old 2013-05-02 15:56:08.000000000 +0200 +++ /var/tmp/diff_new_pack.Lj3SgO/_new 2013-05-02 15:56:08.000000000 +0200 @@ -25,6 +25,7 @@ Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/c/cliff/cliff-%{version}.tar.gz Patch0: ignore-cmd2-requires.diff +Patch1: 0001-Restore-compatibility-with-Prettytable-0.7.2.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-argparse BuildRequires: python-devel @@ -66,6 +67,7 @@ %prep %setup -q -n cliff-%{version} %patch0 +%patch1 -p1 %build python setup.py build ++++++ 0001-Restore-compatibility-with-Prettytable-0.7.2.patch ++++++ >From d1be2d0081e33f6f7b5a533245b9d623e0285f99 Mon Sep 17 00:00:00 2001 From: Dirk Mueller <dirk@dmllr> Date: Thu, 2 May 2013 12:39:20 +0200 Subject: [PATCH] Restore compatibility with Prettytable < 0.7.2 Starting with 0.7.2, PrettyTable changed default on how empty tables are rendered. Before they were completely ommitted, now the default is to show the table headers and decoration, just no content. Restore the previous behavior to stay compatible. --- cliff/formatters/table.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cliff/formatters/table.py b/cliff/formatters/table.py index 5b625ed..b13b364 100644 --- a/cliff/formatters/table.py +++ b/cliff/formatters/table.py @@ -22,7 +22,7 @@ class TableFormatter(ListFormatter, SingleFormatter): pass def emit_list(self, column_names, data, stdout, parsed_args): - x = prettytable.PrettyTable(column_names) + x = prettytable.PrettyTable(column_names, print_empty=False) x.padding_width = 1 # Figure out the types of the columns in the # first row and set the alignment of the @@ -46,7 +46,8 @@ class TableFormatter(ListFormatter, SingleFormatter): return def emit_one(self, column_names, data, stdout, parsed_args): - x = prettytable.PrettyTable(field_names=('Field', 'Value')) + x = prettytable.PrettyTable(field_names=('Field', 'Value'), + print_empty=False) x.padding_width = 1 # Align all columns left because the values are # not all the same type. -- 1.8.1.4 -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org