daklib.command

module to handle command files

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

Classes

CommandFile(filename, data[, log])

Exceptions

CommandError

exception daklib.command.CommandError[source]
class daklib.command.CommandFile(filename: str, data: bytes, log=None)[source]
_action_dm_admin_common(fingerprint, section, session) None[source]
_action_process_upload_common(fingerprint, section, session) None[source]
_check_replay(signed_file: SignedFile, session)[source]

check for replays

Note

Will commit changes to the database.

Parameters:

session – database session

_evaluate_sections(sections, session)[source]
_notify_uploader()[source]
_process_upload_add_command_file(upload: PolicyQueueUpload, command) None[source]
_quote_section(section) str[source]
_sourcename_from_dbchanges(changes: DBChange) str[source]
_split_packages(value: str) list[str][source]
action_break_the_archive(fingerprint, section, session) None[source]
action_dm(fingerprint, section, session) None[source]
action_dm_migrate(fingerprint, section, session) None[source]
action_dm_remove(fingerprint, section, session) None[source]
action_process_upload(fingerprint, section, session) None[source]
evaluate() bool[source]

evaluate commands file

Returns:

True if the file was processed sucessfully, False otherwise