[Python-modules-commits] r6247 - in packages/python-progressbar/trunk/debian (5 files)

morph-guest at users.alioth.debian.org morph-guest at users.alioth.debian.org
Tue Aug 19 21:55:50 UTC 2008


    Date: Tuesday, August 19, 2008 @ 21:55:49
  Author: morph-guest
Revision: 6247

dpatch stuff + patch for simple progess support

Added:
  packages/python-progressbar/trunk/debian/patches/
  packages/python-progressbar/trunk/debian/patches/00list
  packages/python-progressbar/trunk/debian/patches/10_add_simpleprogress.dpatch
Modified:
  packages/python-progressbar/trunk/debian/control
  packages/python-progressbar/trunk/debian/rules

Modified: packages/python-progressbar/trunk/debian/control
===================================================================
--- packages/python-progressbar/trunk/debian/control	2008-08-19 21:16:45 UTC (rev 6246)
+++ packages/python-progressbar/trunk/debian/control	2008-08-19 21:55:49 UTC (rev 6247)
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Sandro Tosi <matrixhasu at gmail.com>
-Build-Depends: debhelper (>= 5), python
+Build-Depends: debhelper (>= 5), python, dpatch
 Build-Depends-Indep: python-support (>= 0.4)
 Standards-Version: 3.8.0
 Homepage: http://pypi.python.org/pypi/progressbar
@@ -15,6 +15,6 @@
 Architecture: all
 Depends: ${python:Depends}, ${misc:Depends}
 Description: text progressbar library for Python
- This library provides a text mode progressbar. This is tipically used
+ This library provides a text mode progressbar. This is typically used
  to display the progress of a long running operation, providing a
  visual clue that processing is underway.

Added: packages/python-progressbar/trunk/debian/patches/00list
===================================================================
--- packages/python-progressbar/trunk/debian/patches/00list	                        (rev 0)
+++ packages/python-progressbar/trunk/debian/patches/00list	2008-08-19 21:55:49 UTC (rev 6247)
@@ -0,0 +1 @@
+10_add_simpleprogress

Added: packages/python-progressbar/trunk/debian/patches/10_add_simpleprogress.dpatch
===================================================================
--- packages/python-progressbar/trunk/debian/patches/10_add_simpleprogress.dpatch	                        (rev 0)
+++ packages/python-progressbar/trunk/debian/patches/10_add_simpleprogress.dpatch	2008-08-19 21:55:49 UTC (rev 6247)
@@ -0,0 +1,22 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_add_simpleprogress.dpatch by Sandro Tosi <matrixhasu at gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Add a simple progress notice
+
+ at DPATCH@
+diff -urNad python-progressbar~/progressbar.py python-progressbar/progressbar.py
+--- python-progressbar~/progressbar.py	2006-05-07 07:34:50.000000000 +0200
++++ python-progressbar/progressbar.py	2008-08-19 23:50:07.672242043 +0200
+@@ -148,6 +148,11 @@
+     def update(self, pbar):
+         return '%3d%%' % pbar.percentage()
+ 
++class SimpleProgress(ProgressBarWidget):
++    "Simple Progress: returns what is already done and the total, e.g. '5 of 47'"
++    def update(self, pbar):
++        return '%d of %d' % (pbar.currval, pbar.maxval)
++
+ class Bar(ProgressBarWidgetHFill):
+     "The bar of progress. It will strech to fill the line."
+     def __init__(self, marker='#', left='|', right='|'):


Property changes on: packages/python-progressbar/trunk/debian/patches/10_add_simpleprogress.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Modified: packages/python-progressbar/trunk/debian/rules
===================================================================
--- packages/python-progressbar/trunk/debian/rules	2008-08-19 21:16:45 UTC (rev 6246)
+++ packages/python-progressbar/trunk/debian/rules	2008-08-19 21:55:49 UTC (rev 6247)
@@ -4,15 +4,17 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+include /usr/share/dpatch/dpatch.make
+
 build: build-stamp
-build-stamp:
+build-stamp: patch-stamp
 	dh_testdir
 
 	python setup.py build;
 	
 	touch $@
 
-clean:
+clean: unpatch
 	dh_testdir
 	dh_testroot
 	rm -f build-stamp




More information about the Python-modules-commits mailing list