dak.cruft_report

Check for obsolete binary packages

@contact: Debian FTP Master <ftpmaster@debian.org> @copyright: 2000-2006 James Troup <james@nocrew.org> @copyright: 2009 Torsten Werner <twerner@debian.org> @license: GNU General Public License version 2 or later

Functions

add_nbs(nbs_d, source, version, package, ...)

do_anais(architecture, binaries_list, ...)

do_dubious_nbs(dubious_nbs)

do_newer_version(lowersuite_name, ...)

do_nfu(nfu_packages)

get_suite_binaries(suite, session)

main()

newest_source_bab(suite_name, package, session)

returns newest source that builds binary package in suite grouped and sorted by source and package name

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

parse_nfu(architecture)

print_cmd(s[, indent])

print_info([s])

queryNewerAll(suite_name, session)

searches for arch != all packages that have an arch == all package with a higher version in the same suite

reportAllNBS(suite_name, suite_id, session)

reportNBS(suite_name, suite_id[, rdeps])

reportNBSMetadata(suite_name, suite_id, session)

reportNewerAll(suite_name, session)

reportWithoutSource(suite_name, suite_id, ...)

report_obsolete_source(suite_name, session)

report_outdated_nonfree(suite, session[, rdeps])

source_bin(source, session)

returns binaries built by source for all or no suite grouped and ordered by package name

usage([exit_code])

dak.cruft_report.add_nbs(nbs_d: dict[str, dict[str, set[str]]], source: str, version: str, package: str, suite_id: int, session: Session) None[source]
dak.cruft_report.do_anais(architecture: str, binaries_list: Iterable[str], source: str, session: Session) str[source]
dak.cruft_report.do_dubious_nbs(dubious_nbs: dict[str, dict[str, set[str]]]) None[source]
dak.cruft_report.do_newer_version(lowersuite_name: str, highersuite_name: str, code: str, session: Session) None[source]
dak.cruft_report.do_nfu(nfu_packages: dict[str, list[tuple[str, str, str]]]) None[source]
dak.cruft_report.get_suite_binaries(suite: Suite, session: Session) set[str][source]
dak.cruft_report.main() None[source]
dak.cruft_report.newest_source_bab(suite_name: str, package: str, session: Session) Result[tuple[str, str]][source]

returns newest source that builds binary package in suite grouped and sorted by source and package name

dak.cruft_report.obsolete_source(suite_name: str, session: Session) CursorResult[tuple[int, str, str, str]][source]

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)

dak.cruft_report.parse_nfu(architecture: str) set[str][source]
dak.cruft_report.print_cmd(s: str, indent=4) None[source]
dak.cruft_report.print_info(s='') None[source]
dak.cruft_report.queryNewerAll(suite_name: str, session: Session) CursorResult[tuple[str, str, str, str]][source]

searches for arch != all packages that have an arch == all package with a higher version in the same suite

dak.cruft_report.reportAllNBS(suite_name: str, suite_id: int, session: Session, rdeps=False) None[source]
dak.cruft_report.reportNBS(suite_name: str, suite_id: int, rdeps=False) None[source]
dak.cruft_report.reportNBSMetadata(suite_name: str, suite_id: int, session: Session, rdeps=False) None[source]
dak.cruft_report.reportNewerAll(suite_name: str, session: Session) None[source]
dak.cruft_report.reportWithoutSource(suite_name: str, suite_id: int, session: Session, rdeps=False) None[source]
dak.cruft_report.report_obsolete_source(suite_name: str, session: Session) None[source]
dak.cruft_report.report_outdated_nonfree(suite: str, session: Session, rdeps=False) None[source]
dak.cruft_report.source_bin(source: str, session: Session) Result[tuple[str]][source]

returns binaries built by source for all or no suite grouped and ordered by package name

dak.cruft_report.suite: Suite
dak.cruft_report.suite_id: int
dak.cruft_report.usage(exit_code=0) NoReturn[source]