[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 6.0-48-g975a10c

Sandro Tosi morph at debian.org
Tue Sep 6 20:33:58 UTC 2011


The following commit has been merged in the master branch:
commit 975a10c42a2b2598aa89e9c90c17b77190acbb39
Author: Sandro Tosi <morph at debian.org>
Date:   Tue Sep 6 22:33:18 2011 +0200

    fix a crash when generating dependencies tables for long package name; thanks to Wouter Van Hemel for the report; Closes: #640512
    
    It's a tuning of the tables alignment algorithm, to use the pre-computed package
    witdh to compute the version one.

diff --git a/debian/changelog b/debian/changelog
index 1eb58f4..704da56 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,8 +3,11 @@ reportbug (6.3) UNRELEASED; urgency=low
   * bin/reportbug
     - be more explicit that Ctrl+c on subject menu exit reportbug without
       sending any report; thanks to simon for the report; Closes: #640213
+  * reportbug/utils.py
+    - fix a crash when generating dependencies tables for long package name;
+      thanks to Wouter Van Hemel for the report; Closes: #640512
 
- -- Sandro Tosi <morph at debian.org>  Tue, 06 Sep 2011 20:10:58 +0200
+ -- Sandro Tosi <morph at debian.org>  Tue, 06 Sep 2011 22:09:58 +0200
 
 reportbug (6.2) unstable; urgency=low
 
diff --git a/reportbug/utils.py b/reportbug/utils.py
index f55345e..fe819a3 100644
--- a/reportbug/utils.py
+++ b/reportbug/utils.py
@@ -655,7 +655,7 @@ def get_dependency_info(package, depends, rel="depends on"):
     maxp = max([len(x[0]) for x in deplist])
     maxv = max([len(x[1]) for x in deplist])
     widthp = min(maxp, 73-maxv)
-    widthv = min(maxv, 73-maxp)
+    widthv = min(maxv, 73-widthp)
 
     for (pack, vers) in deplist:
         # we format the string specifying to align it in a field of a given

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list