X-Git-Url: https://git.decadent.org.uk/gitweb/?p=dak.git;a=blobdiff_plain;f=dak%2Fshow_new.py;h=64ea22874d0d36096e86f9b1c77c43444ce2bacd;hp=3bd1726408f37ef19d149fb523d3c63bb1724704;hb=03a86547e5d9b209016cc0b23f825d3baea92f8c;hpb=a392c3dfdf54fab308b0600119aaa1f2b55e8fd5 diff --git a/dak/show_new.py b/dak/show_new.py index 3bd17264..64ea2287 100755 --- a/dak/show_new.py +++ b/dak/show_new.py @@ -30,26 +30,29 @@ import os, sys, time import apt_pkg import examine_package +from daklib import policy from daklib.dbconn import * -from daklib.queue import determine_new, check_valid, Upload, get_policy_queue from daklib import utils from daklib.regexes import re_source_ext from daklib.config import Config from daklib import daklog -from daklib.changesutils import * -from daklib.threadpool import ThreadPool +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]) result = """ @@ -59,7 +62,7 @@ def html_header(name, filestoexamine): /> %(name)s - Debian NEW package overview - +