X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fshow_new.py;h=af1b8a6480b0b58ea6c1af99a90ea94fffa732b6;hb=026bdb9580e6d18bf504d2f44d46890df5d89f1a;hp=e355c37f7f42c4a119fdbcc081b0aa573cd7a898;hpb=6a4cddfbe864e563e671fe5dabf5600c4783af5c;p=dak.git diff --git a/dak/show_new.py b/dak/show_new.py index e355c37f..af1b8a64 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 @@ -25,36 +25,43 @@ ################################################################################ -import copy, os, sys, time +from copy import copy +import os, sys, time import apt_pkg import examine_package -from daklib import database -from daklib import queue + +from daklib import policy +from daklib.dbconn import * from daklib import utils +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 -Upload = None -projectB = 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 - +