def accept_to_new(directory, upload): Logger.log(['ACCEPT-TO-NEW', upload.changes.filename]) print("ACCEPT-TO-NEW") upload.install_to_new() # TODO: tag bugs pending pu = get_processed_upload(upload) daklib.announce.announce_new(pu) SummaryStats().accept_count += 1 SummaryStats().accept_bytes += upload.changes.bytes