X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fshow_deferred.py;h=7352f71ea928d6bec94ee0b9654d339b174fa3f1;hb=6accaacd68ed6fe70c3746eee7fa16d1f2595ffa;hp=e9266bcc03f4aa33a60483b9dc24779e5b146323;hpb=cd5b29ddfd8de263c085f494b9573d683913f6f3;p=dak.git diff --git a/dak/show_deferred.py b/dak/show_deferred.py index e9266bcc..7352f71e 100755 --- a/dak/show_deferred.py +++ b/dak/show_deferred.py @@ -22,10 +22,16 @@ import sys, os, re, time import apt_pkg -import tempfile -from debian_bundle import deb822 -from daklib import database -from daklib import queue +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 @@ -84,6 +90,7 @@ def header(): def footer(): res = "
Timestamp: %s (UTC)
" % (time.strftime("%d.%m.%Y / %H:%M:%S", time.gmtime())) + res += " " res += """ @@ -91,7 +98,7 @@ def footer(): height="31" width="88"> """ res += "