X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fshow_new.py;h=64ea22874d0d36096e86f9b1c77c43444ce2bacd;hb=5a61a05250b1bf5d54661103e8999eb7c7fc9207;hp=b21efcce43ac336797034dc84bcdf2743bcc15c2;hpb=68ef7be81d7e958d0147d92ee5f6919746448377;p=dak.git diff --git a/dak/show_new.py b/dak/show_new.py index b21efcce..64ea2287 100755 --- a/dak/show_new.py +++ b/dak/show_new.py @@ -1,7 +1,7 @@ #!/usr/bin/env python """ Output html for packages in NEW """ -# Copyright (C) 2007 Joerg Jaspert +# Copyright (C) 2007, 2009 Joerg Jaspert # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -30,31 +30,39 @@ import os, sys, time import apt_pkg import examine_package -from daklib.queue import determine_new, check_valid +from daklib import policy +from daklib.dbconn import * from daklib import utils from daklib.regexes import re_source_ext +from daklib.config import Config +from daklib import daklog +from daklib.dakmultiprocessing import DakProcessPool, PROC_STATUS_SUCCESS, PROC_STATUS_SIGNALRAISED +from multiprocessing import Manager, TimeoutError # Globals Cnf = None Options = None -sources = set() +manager = Manager() +sources = manager.list() +htmlfiles_to_process = manager.list() +timeout_str = "Timed out while processing" ################################################################################ ################################################################################ ################################################################################ -def html_header(name, filestoexamine): +def html_header(name, missing): if name.endswith('.changes'): name = ' '.join(name.split('_')[:2]) - print """ + result = """ %(name)s - Debian NEW package overview - +