X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fqueue_report.py;h=9c349892cea4f68c8e82d11ace13d222c903027c;hb=cfc60571b3937364f8f507e8e58e93d90b592016;hp=31b11d8dd0c0957f0eafa22c4b5279c0c942d263;hpb=279743ce44cd6c487ad57bcd3d15306402893763;p=dak.git diff --git a/dak/queue_report.py b/dak/queue_report.py index 31b11d8d..9c349892 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Produces a report on NEW and BYHAND packages +""" Produces a report on NEW and BYHAND packages """ # Copyright (C) 2001, 2002, 2003, 2005, 2006 James Troup # This program is free software; you can redistribute it and/or modify @@ -34,15 +34,18 @@ ################################################################################ -import copy, glob, os, stat, sys, time +from copy import copy +import glob, os, stat, sys, time import apt_pkg -import cgi -from daklib import queue + 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 -Upload = None direction = [] row_number = 0 @@ -58,6 +61,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. + -d, --directories=key A comma seperated list of queues to be scanned Sorting Keys: ao=age, oldest first. an=age, newest first. na=name, ascending nd=name, descending @@ -169,6 +173,23 @@ def header(): Debian NEW and BYHAND Packages +