2 # (c) 2010 Luca Falavigna <dktrkranz@debian.org>
3 # Free software licensed under the GPL version 2 or later
9 sys.path.append('../dak')
10 from daklib.dbconn import *
11 from daklib import utils
12 from daklib.queue import Upload
17 changes_dir = '/srv/ftp.debian.org/queue/done'
19 def find_changes(pattern, root):
20 for path, dirs, files in os.walk(os.path.abspath(root)):
21 for filename in fnmatch.filter(files, pattern):
22 yield os.path.join(path, filename)
24 for changes_file in find_changes(pattern, changes_dir):
26 for changes_file in find_changes(pattern, changes_dir):
28 u.pkg.changes_file = changes_file
29 (u.pkg.changes["fingerprint"], rejects) = utils.check_signature(changes_file)
30 if u.load_changes(changes_file):
34 print 'Unable to handle %s' % changes_file
38 sys.stdout.write('%d out of %d processed\r' % (i, t))