daklib.announce

module to send announcements for processed packages

@contact: Debian FTP Master <ftpmaster@debian.org> @copyright: 2012, Ansgar Burchardt <ansgar@debian.org> @license: GPL-2+

Functions

announce_accept(upload)

Announce an upload.

announce_new(upload)

Announce an upload going to NEW.

announce_reject(upload, reason[, rejected_by])

Announce a reject.

Classes

ProcessedUpload()

Contains data of a processed upload.

class daklib.announce.ProcessedUpload[source]

Contains data of a processed upload.

architecture = None

Architectures from changes

bugs = None

Bugs closed in upload

changed_by = None

Changed-By: field contents

changes = None

Contents of .changes file from upload

changes_filename = None

Changes Filename

fingerprint = None

Fingerprint of upload signer

from_policy_suites = []

Policy suites

maintainer = None

Maintainer: field contents

program = 'unknown-program'

Which dak program was in use

source = None

Source value from changes

sourceful = None

Did upload contain source

suites = []

Destination suites

version = None

Version from changes

warnings = []

Eventual warnings for upload

daklib.announce._subst_for_upload(upload: ProcessedUpload) dict[source]

Prepare substitutions used for announce mails.

Parameters:

upload – upload to handle

Returns:

A dict of substition values for use by daklib.utils.TemplateSubst()

daklib.announce._whitelists(upload: ProcessedUpload)[source]
daklib.announce.announce_accept(upload: ProcessedUpload) None[source]

Announce an upload.

Parameters:

upload – upload to handle

daklib.announce.announce_new(upload: ProcessedUpload) None[source]

Announce an upload going to NEW.

Parameters:

upload – upload to handle

daklib.announce.announce_reject(upload: ProcessedUpload, reason: str, rejected_by: Optional[str] = None) None[source]

Announce a reject.

Parameters:
  • upload – upload to handle

  • reason – Reject reason

  • rejected_by – Who is doing the reject.