]> git.decadent.org.uk Git - dak.git/blobdiff - dak/stats.py
Don't repr the object; could be a long (and ends up with eg. "2L")
[dak.git] / dak / stats.py
index 50524641c9255e2fd0088221161e5e0fa5237924..52534c5128be8f2634747d0cd8ec40b3e63bc99d 100755 (executable)
@@ -30,8 +30,9 @@
 
 ################################################################################
 
-import pg, sys
+import sys
 import apt_pkg
+
 from daklib import utils
 from daklib.dbconn import DBConn, get_suite_architectures, Suite, Architecture, \
                           BinAssociation
@@ -197,7 +198,7 @@ def number_of_packages():
         output = output + arch.center(longest_arch)+" |"
         for suite_id in suite_id_list:
             if suite_arches[suite_id].has_key(arch):
-                count = repr(d[suite_id][arch_id])
+                count = "%d" % d[suite_id][arch_id]
             else:
                 count = "-"
             output = output + count.rjust(longest_suite)+" |"