From 77b17fbf82981c28a1abe744d73361ca628602a8 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 13 Jun 2013 19:12:36 +0200 Subject: [PATCH] python-progressbar: Update to 2.3. --- .../patches/progressbar-interrupt.patch | 12 ++++++++++++ python-progressbar/python-progressbar.nm | 7 ++++--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 python-progressbar/patches/progressbar-interrupt.patch diff --git a/python-progressbar/patches/progressbar-interrupt.patch b/python-progressbar/patches/progressbar-interrupt.patch new file mode 100644 index 000000000..d2727221a --- /dev/null +++ b/python-progressbar/patches/progressbar-interrupt.patch @@ -0,0 +1,12 @@ +Index: progressbar-2.3/progressbar/__init__.py +=================================================================== +--- progressbar-2.3.orig/progressbar/__init__.py ++++ progressbar-2.3/progressbar/__init__.py +@@ -141,6 +141,7 @@ class ProgressBar(object): + try: + self._handle_resize() + signal.signal(signal.SIGWINCH, self._handle_resize) ++ signal.siginterrupt(signal.SIGWINCH, False) + self.signal_set = True + except (SystemExit, KeyboardInterrupt): raise + except: diff --git a/python-progressbar/python-progressbar.nm b/python-progressbar/python-progressbar.nm index 94e986713..52871c0e4 100644 --- a/python-progressbar/python-progressbar.nm +++ b/python-progressbar/python-progressbar.nm @@ -4,13 +4,13 @@ ############################################################################### name = python-progressbar -version = 2.2 +version = 2.3 release = 1 arch = noarch thisapp = progressbar-%{version} groups = System/Libraries -url = http://pypi.python.org/pypi/progressbar +url = http://code.google.com/p/python-progressbar/ license = LGPLv2+ summary = Text progressbar library for python. @@ -20,10 +20,11 @@ description processing is under way. end -source_dl = +source_dl = https://%{name}.googlecode.com/files/ build requires + python-setuptools python-devel end