X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dak%2Fqueue_report.py;h=98c80f0af85dd0b50bcbed1e6e8b856b80a2d11e;hb=581e335a6c23d9752d7b88b688537a0ef7072b0b;hp=9c349892cea4f68c8e82d11ace13d222c903027c;hpb=5c7286abf3ff316a802de2b41d246a07f6b04257;p=dak.git diff --git a/dak/queue_report.py b/dak/queue_report.py index 9c349892..98c80f0a 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -37,13 +37,16 @@ from copy import copy import glob, os, stat, sys, time import apt_pkg +try: + import rrdtool +except ImportError: + pass from daklib import utils from daklib.queue import Upload from daklib.dbconn import DBConn, has_new_comment, DBChange, DBSource, get_uid_from_fingerprint from daklib.textutils import fix_maintainer from daklib.dak_exceptions import * -import debianbts Cnf = None direction = [] @@ -61,6 +64,7 @@ Prints a report of packages in queue directories (usually new and byhand). -s, --sort=key sort output according to key, see below. -a, --age=key if using sort by age, how should time be treated? If not given a default of hours will be used. + -r, --rrd=key Directory where rrd files to be updated are stored -d, --directories=key A comma seperated list of queues to be scanned Sorting Keys: ao=age, oldest first. an=age, newest first. @@ -218,6 +222,7 @@ def header(): def footer(): print "
" % (time.strftime("%d.%m.%Y / %H:%M:%S", time.gmtime())) + print " " print """