X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fshow_deferred.py;h=7352f71ea928d6bec94ee0b9654d339b174fa3f1;hb=dd80b169287a128cd9e3b833852fbf68106385b5;hp=e8e1621d2f957cb51c861329e12377e6e780dff1;hpb=19e99ee6a161707062fd7ac5ea5ac4781a28d0bc;p=dak.git diff --git a/dak/show_deferred.py b/dak/show_deferred.py index e8e1621d..7352f71e 100755 --- a/dak/show_deferred.py +++ b/dak/show_deferred.py @@ -22,7 +22,15 @@ import sys, os, re, time import apt_pkg -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 @@ -82,6 +90,7 @@ def header(): def footer(): res = "
Timestamp: %s (UTC)
" % (time.strftime("%d.%m.%Y / %H:%M:%S", time.gmtime())) + res += " " res += """ @@ -89,7 +98,7 @@ def footer(): height="31" width="88"> """ res += "