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

Module cruft

source code

helper functions for cruft-report


Contact: Debian FTPMaster <ftpmaster@debian.org> @copyright 2011 Torsten Werner <twerner@debian.org>

Classes [hide private]
  NamedSource
A source package identified by its name with all of its versions in a suite.
  DejavuBinary
A binary package identified by its name which gets built by multiple source packages in a suite.
Functions [hide private]
 
newer_version(lowersuite_name, highersuite_name, session, include_equal=False)
Finds newer versions in lowersuite_name than in highersuite_name.
source code
 
get_package_names(suite)
Returns a query that selects all distinct package names from suite ordered by package name.
source code
 
report_multiple_source(suite)
Reports binary packages built from multiple source package with different names.
source code
 
query_without_source(suite_id, session)
searches for arch: all packages from suite that do no longer reference a source package in the same suite
source code
 
queryNBS(suite_id, session)
This one is really complex.
source code
 
queryNBS_metadata(suite_id, session)
searches for NBS packages based on metadata extraction of the newest source for a given suite
source code

Imports: func, object_session, aliased


Function Details [hide private]

newer_version(lowersuite_name, highersuite_name, session, include_equal=False)

source code 

Finds newer versions in lowersuite_name than in highersuite_name. Returns a list of tuples (source, higherversion, lowerversion) where higherversion is the newest version from highersuite_name and lowerversion is the newest version from lowersuite_name.

query_without_source(suite_id, session)

source code 

searches for arch: all packages from suite that do no longer reference a source package in the same suite

subquery unique_binaries: selects all packages with only 1 version in suite since 'dak rm' does not allow to specify version numbers

queryNBS(suite_id, session)

source code 

This one is really complex. It searches arch != all packages that are no longer built from current source packages in suite.

temp table unique_binaries: will be populated with packages that have only one version in suite because 'dak rm' does not allow specifying version numbers

temp table newest_binaries: will be populated with packages that are built from current sources

subquery uptodate_arch: returns all architectures built from current sources

subquery unique_binaries_uptodate_arch: returns all packages in architectures from uptodate_arch

subquery unique_binaries_uptodate_arch_agg: same as unique_binaries_uptodate_arch but with column architecture aggregated to array

subquery uptodate_packages: similar to uptodate_arch but returns all packages built from current sources

subquery outdated_packages: returns all packages with architectures no longer built from current source