dak.process_policy

Handles packages from policy queues

@contact: Debian FTP Master <ftpmaster@debian.org> @copyright: 2001, 2002, 2003, 2004, 2005, 2006 James Troup <james@nocrew.org> @copyright: 2009 Joerg Jaspert <joerg@debian.org> @copyright: 2009 Frank Lichtenheld <djpig@debian.org> @copyright: 2009 Mark Hymers <mhy@debian.org> @license: GNU General Public License version 2 or later

Functions

comment_accept(upload, srcqueue, comments, ...)

comment_reject(*args)

do_comments(dir, srcqueue, opref, npref, ...)

get_processed_upload(upload)

main()

real_comment_reject(upload, srcqueue, ...[, ...])

remove_unreferenced_binaries(policy_queue, ...)

Remove binaries that are no longer referenced by an upload

remove_unreferenced_sources(policy_queue, ...)

Remove sources that are no longer referenced by an upload or a binary

remove_upload(upload, transaction)

try_or_reject(function)

usage([status])

dak.process_policy.comment_accept(upload: PolicyQueueUpload, srcqueue: PolicyQueue, comments: str, transaction: ArchiveTransaction) None[source]
dak.process_policy.comment_reject(*args) None[source]
dak.process_policy.do_comments(dir: str, srcqueue: PolicyQueue, opref: str, npref: str, line: str, fn: Callable[[PolicyQueueUpload, PolicyQueue, str, ArchiveTransaction], None], transaction: ArchiveTransaction) None[source]
dak.process_policy.get_processed_upload(upload: PolicyQueueUpload) ProcessedUpload[source]
dak.process_policy.main()[source]
dak.process_policy.real_comment_reject(upload: PolicyQueueUpload, srcqueue: PolicyQueue, comments: str, transaction: ArchiveTransaction, notify=True, manual=False) None[source]
dak.process_policy.remove_unreferenced_binaries(policy_queue: PolicyQueue, transaction: ArchiveTransaction) None[source]

Remove binaries that are no longer referenced by an upload

dak.process_policy.remove_unreferenced_sources(policy_queue: PolicyQueue, transaction: ArchiveTransaction) None[source]

Remove sources that are no longer referenced by an upload or a binary

dak.process_policy.remove_upload(upload: PolicyQueueUpload, transaction: ArchiveTransaction) None[source]
dak.process_policy.try_or_reject(function: Callable[[PolicyQueueUpload, PolicyQueue, str, ArchiveTransaction], None]) Callable[[PolicyQueueUpload, PolicyQueue, str, ArchiveTransaction], None][source]
dak.process_policy.usage(status=0) NoReturn[source]