X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dak%2Fshow_deferred.py;h=4dd603e4bc53f7c8ccfaf750ed0c13f843d84912;hb=3210a768ef56cee5f2aaac44f52fa8e6352fbc94;hp=d3cf65302da6c6c6ee8a030c17b49eea7c24ed09;hpb=8afb0f3d9832ab1c51bdce8aa4c12c2684835603;p=dak.git diff --git a/dak/show_deferred.py b/dak/show_deferred.py index d3cf6530..4dd603e4 100755 --- a/dak/show_deferred.py +++ b/dak/show_deferred.py @@ -22,8 +22,15 @@ import sys, os, re, time import apt_pkg -import tempfile -from debian_bundle import deb822 +import rrdtool + +try: + # starting with squeeze + from debian import deb822 +except: + # up to lenny + from debian_bundle import deb822 + from daklib.dbconn import * from daklib import utils from daklib.regexes import re_html_escaping, html_escaping @@ -83,6 +90,7 @@ def header(): def footer(): res = "
Timestamp: %s (UTC)
" % (time.strftime("%d.%m.%Y / %H:%M:%S", time.gmtime())) + res += " " res += """ @@ -90,7 +98,7 @@ def footer(): height="31" width="88"> """ res += "