Package daklib :: Module rm
[hide private]
[frames] | no frames]

Module rm

source code

General purpose package removal code for ftpmaster


Contact: Debian FTP Master <ftpmaster@debian.org>

Copyright:

License: GNU General Public License version 2 or later

Classes [hide private]
  ReverseDependencyChecker
A bulk tester for reverse dependency checks
Functions [hide private]
None
remove(session, reason, suites, removals, whoami=None, partial=False, components=None, done_bugs=None, date=None, carbon_copy=None, close_related_bugs=False)
Batch remove a number of packages Verify that the files listed in the Files field of the .dsc are those expected given the announced Format.
source code

Imports: apt_pkg, fcntl, functools, sql, email, sub, defaultdict, re_build_dep_arch, utils, re_bin_only_nmu, bts


Function Details [hide private]

remove(session, reason, suites, removals, whoami=None, partial=False, components=None, done_bugs=None, date=None, carbon_copy=None, close_related_bugs=False)

source code 

Batch remove a number of packages Verify that the files listed in the Files field of the .dsc are those expected given the announced Format.

Parameters:
  • session (SQLA Session) - The database session in use
  • reason (string) - The reason for the removal (e.g. "[auto-cruft] NBS (no longer built by <source>)")
  • suites (list) - A list of the suite names in which the removal should occur
  • removals (list) - A list of the removals. Each element should be a tuple (or list) of at least the following for 4 items from the database (in order): package, version, architecture, (database) id. For source packages, the "architecture" should be set to "source".
  • partial (bool) - Whether the removal is "partial" (e.g. architecture specific).
  • components (list) - List of components involved in a partial removal. Can be an empty list to not restrict the removal to any components.
  • whoami (string) - The person (or entity) doing the removal. Defaults to utils.whoami()
  • date (string) - The date of the removal. Defaults to `date -R`
  • done_bugs (list) - A list of bugs to be closed when doing this removal.
  • done_bugs (list) - Whether bugs related to the package being removed should be closed as well. NB: Not implemented for more than one suite.
  • carbon_copy (list) - A list of mail addresses to CC when doing removals. NB: all items are taken "as-is" unlike "dak rm".
  • close_related_bugs (bool)
Returns: None
Nothing