X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fqueue_report.py;h=cb2b93904a974d5800be5b2a0e6689cecd27b198;hb=1a81c5c282979e4660c7e1f3464ced526b100faf;hp=c9013a5239c956eb54c5c60e9ed656ca6aa9fe2d;hpb=b2b983bf21df6bc13f5b073f26722269610ef2cb;p=dak.git diff --git a/dak/queue_report.py b/dak/queue_report.py index c9013a52..cb2b9390 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -37,10 +37,15 @@ 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 +from daklib.dbconn import DBConn, has_new_comment, DBChange, DBSource, \ + get_uid_from_fingerprint, get_policy_queue from daklib.textutils import fix_maintainer from daklib.dak_exceptions import * @@ -52,7 +57,7 @@ row_number = 0 def usage(exit_code=0): print """Usage: dak queue-report -Prints a report of packages in queue directories (usually new and byhand). +Prints a report of packages in queues (usually new and byhand). -h, --help show this help and exit. -8, --822 writes 822 formated output to the location set in dak.conf @@ -60,6 +65,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. @@ -172,6 +178,23 @@ def header(): Debian NEW and BYHAND Packages +