daklib.queue¶
Queue utility functions for dak
@contact: Debian FTP Master <ftpmaster@debian.org> @copyright: 2001 - 2006 James Troup <james@nocrew.org> @copyright: 2009, 2010 Joerg Jaspert <joerg@debian.org> @license: GNU General Public License version 2 or later
Functions
  | 
Check if section and priority for new overrides exist in database.  | 
  | 
|
  | 
returns a list of tuples (suite_name, version) for binary package and arch_string  | 
  | 
returns a list of tuples (suite_name, version) for source package  | 
  | 
- daklib.queue.check_valid(overrides: list[dict], session) bool[source]¶
 Check if section and priority for new overrides exist in database.
- Additionally does sanity checks:
 debian-installer packages have to be udeb (or source)
non debian-installer packages cannot be udeb
- Parameters:
 overrides –
list of overrides to check. The overrides need to be given in form of a dict with the following keys:
package: package name
priority
section
component
type: type of requested override (‘dsc’, ‘deb’ or ‘udeb’)
All values are strings.
- Returns:
 Trueif all overrides are valid,Falseif there is any invalid override.
- daklib.queue.get_suite_version_by_package(package: str, arch_string: str, session) list[tuple[str, str]][source]¶
 returns a list of tuples (suite_name, version) for binary package and arch_string
- daklib.queue.get_suite_version_by_source(source: str, session) list[tuple[str, str]][source]¶
 returns a list of tuples (suite_name, version) for source package
- daklib.queue.prod_maintainer(notes, upload: PolicyQueueUpload, session, trainee=False)[source]¶