Package dak :: Module cruft_report
[hide private]
[frames] | no frames]

Module cruft_report

source code

Check for obsolete binary packages


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

Copyright:

License: GNU General Public License version 2 or later

Functions [hide private]
 
usage(exit_code=0) source code
 
print_info(s="") source code
 
print_cmd(s, indent=4) source code
 
add_nbs(nbs_d, source, version, package, suite_id, session) source code
 
do_anais(architecture, binaries_list, source, session) source code
 
do_nfu(nfu_packages) source code
 
parse_nfu(architecture) source code
 
do_newer_version(lowersuite_name, highersuite_name, code, session) source code
 
reportWithoutSource(suite_name, suite_id, session, rdeps=False) source code
 
queryNewerAll(suite_name, session)
searches for arch != all packages that have an arch == all package with a higher version in the same suite
source code
 
reportNewerAll(suite_name, session) source code
 
reportNBS(suite_name, suite_id, rdeps=False) source code
 
reportNBSMetadata(suite_name, suite_id, session, rdeps=False) source code
 
reportAllNBS(suite_name, suite_id, session, rdeps=False) source code
 
do_dubious_nbs(dubious_nbs) source code
 
obsolete_source(suite_name, session)
returns obsolete source packages for suite_name without binaries in the same suite sorted by install_date; install_date should help detecting source only (or binary throw away) uploads; duplicates in the suite are skipped
source code
 
source_bin(source, session)
returns binaries built by source for all or no suite grouped and ordered by package name
source code
 
newest_source_bab(suite_name, package, session)
returns newest source that builds binary package in suite grouped and sorted by source and package name
source code
 
report_obsolete_source(suite_name, session) source code
 
get_suite_binaries(suite, session) source code
 
report_outdated_nonfree(suite, session, rdeps=False) source code
 
main() source code
Variables [hide private]
  no_longer_in_suite = {}
  source_binaries = {}
  source_versions = {}

Imports: functools, os, sys, re, apt_pkg, defaultdict, Config, utils, re_extract_src_version


Function Details [hide private]

obsolete_source(suite_name, session)

source code 

returns obsolete source packages for suite_name without binaries in the same suite sorted by install_date; install_date should help detecting source only (or binary throw away) uploads; duplicates in the suite are skipped

subquery 'source_suite_unique' returns source package names from suite without duplicates; the rationale behind is that neither cruft-report nor rm cannot handle duplicates (yet)