Control: tags -1 + patch pending

Dear maintainer,

I've prepared an NMU for python-cloudservers (versioned as 1.1-1.2) and
uploaded it to DELAYED/2. Please feel free to tell me if I
should delay it longer.

Regards.
-- 
Sebastian Ramacher
diff -Nru python-cloudservers-1.1/debian/changelog python-cloudservers-1.1/debian/changelog
--- python-cloudservers-1.1/debian/changelog	2012-04-29 07:20:11.000000000 +0200
+++ python-cloudservers-1.1/debian/changelog	2012-12-24 15:11:18.000000000 +0100
@@ -1,3 +1,12 @@
+python-cloudservers (1.1-1.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/patches/673790.patch: Fix usage of prettytable. prettytable 0.6
+    changed the API. (Closes: #673790)
+  * debian/control: Bump python-prettytable (Build-)Depends to >= 0.6.
+
+ -- Sebastian Ramacher <sramac...@debian.org>  Mon, 24 Dec 2012 15:10:46 +0100
+
 python-cloudservers (1.1-1.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -Nru python-cloudservers-1.1/debian/control python-cloudservers-1.1/debian/control
--- python-cloudservers-1.1/debian/control	2012-04-29 07:17:02.000000000 +0200
+++ python-cloudservers-1.1/debian/control	2012-12-24 14:43:13.000000000 +0100
@@ -2,13 +2,13 @@
 Section: python
 Priority: optional
 Maintainer: Soren Hansen <so...@ubuntu.com>
-Build-Depends: cdbs, debhelper (>= 5.0.38), python-all (>= 2.3.5-11), python-support, python-distribute, python-nose, python-prettytable, python-argparse, python-mock, python-httplib2
+Build-Depends: cdbs, debhelper (>= 5.0.38), python-all (>= 2.3.5-11), python-support, python-distribute, python-nose, python-prettytable (>= 0.6), python-argparse, python-mock, python-httplib2
 XS-Python-Version: >= 2.6
 Standards-Version: 3.8.4
 
 Package: python-cloudservers
 Architecture: all
-Depends: ${misc:Depends}, ${python:Depends}, python-pkg-resources, python-prettytable, python-argparse, python-httplib2, python (>= 2.6)
+Depends: ${misc:Depends}, ${python:Depends}, python-pkg-resources, python-prettytable (>= 0.6), python-argparse, python-httplib2, python (>= 2.6)
 XB-Python-Version: ${python:Versions}
 Description: client library for Rackspace's Cloud Servers API
  Python library and CLI tool for interacting with Rackspace's Cloud
diff -Nru python-cloudservers-1.1/debian/patches/673790.patch python-cloudservers-1.1/debian/patches/673790.patch
--- python-cloudservers-1.1/debian/patches/673790.patch	1970-01-01 01:00:00.000000000 +0100
+++ python-cloudservers-1.1/debian/patches/673790.patch	2012-12-24 14:47:20.000000000 +0100
@@ -0,0 +1,31 @@
+Description: update use of prettytable to the new API
+Author: Sebastian Ramacher <sramac...@debian.org>
+Last-Update: 2012-12-24
+
+Index: python-cloudservers-1.1/cloudservers/shell.py
+===================================================================
+--- python-cloudservers-1.1.orig/cloudservers/shell.py	2012-12-24 14:46:12.069855412 +0100
++++ python-cloudservers-1.1/cloudservers/shell.py	2012-12-24 14:47:10.227633083 +0100
+@@ -437,16 +437,18 @@
+ # Helpers
+ def print_list(objs, fields):
+     pt = prettytable.PrettyTable([f for f in fields], caching=False)
+-    pt.aligns = ['l' for f in fields]
++    for f in fields:
++      pt.align[f] = 'l'
+     for o in objs:
+         pt.add_row([getattr(o, f.lower().replace(' ', '_'), '') for f in fields])
+-    pt.printt(sortby=fields[0])
++    print pt.get_string(sortby=fields[0])
+     
+ def print_dict(d):
+     pt = prettytable.PrettyTable(['Property', 'Value'], caching=False)
+-    pt.aligns = ['l', 'l']
++    pt.align['Property'] = 'l'
++    pt.align['Value'] = 'l'
+     [pt.add_row(list(r)) for r in d.iteritems()]
+-    pt.printt(sortby='Property')
++    print pt.get_string(sortby='Property')
+ 
+ def main():
+     try:
diff -Nru python-cloudservers-1.1/debian/patches/series python-cloudservers-1.1/debian/patches/series
--- python-cloudservers-1.1/debian/patches/series	2012-04-29 07:22:00.000000000 +0200
+++ python-cloudservers-1.1/debian/patches/series	2012-12-24 14:35:13.000000000 +0100
@@ -1,3 +1,4 @@
 cleaner-sources.txt
 autogeneration-fallout
 Fixes-egg-info-PKG-INFO
+673790.patch

Attachment: signature.asc
Description: Digital signature

Reply via email to