X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fqueue_report.py;h=1f688919df9bf37f56ef8e637e96aae38ad8ba89;hb=8cb1abe7c2f08bc22fd3ddfcfce55e6183cd297e;hp=6843bdd7618c80b3b4702ae6218dc6636a71b301;hpb=10c17d5eae74de91497ce5b7e88389051f4f334c;p=dak.git diff --git a/dak/queue_report.py b/dak/queue_report.py index 6843bdd7..1f688919 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -37,10 +37,14 @@ 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, get_uid_from_fingerprint +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 * @@ -60,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. @@ -172,6 +177,23 @@ def header(): Debian NEW and BYHAND Packages +