コード例 #1
0
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
コード例 #2
0
ファイル: process_upload.py プロジェクト: Debian/dak
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