X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fqueue_report.py;h=7176a886a8d76a9d05b6050c88b5993b84f7955e;hb=a6fe641395cb2f5f2a48d7fe1ffef2ff9c701165;hp=4daa3ccbca5825878490bbecb2a0bfd02d26e833;hpb=a24454b7bd86d73870bbcfb1277fdd26a1454a57;p=dak.git diff --git a/dak/queue_report.py b/dak/queue_report.py index 4daa3ccb..7176a886 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -34,13 +34,27 @@ ################################################################################ +import warnings +warnings.filterwarnings('ignore', \ + "apt_pkg\.ParseTagFile\(\) is deprecated\. Please see apt_pkg\.TagFile\(\) for the replacement\.", \ + DeprecationWarning) +warnings.filterwarnings('ignore', \ + "Attribute '.*' of the 'apt_pkg\.TagFile' object is deprecated, use '.*' instead\.", \ + DeprecationWarning) + +################################################################################ + from copy import copy import glob, os, stat, sys, time import apt_pkg -import cgi +try: + import rrdtool +except ImportError: + pass from daklib import utils -from daklib.dbconn import DBConn, has_new_comment +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 * @@ -60,6 +74,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 +187,23 @@ def header(): Debian NEW and BYHAND Packages +