dak.check_archive¶
Various different sanity checks
@contact: Debian FTP Master <ftpmaster@debian.org> @copyright: (C) 2000, 2001, 2002, 2003, 2004, 2006 James Troup <james@nocrew.org> @license: GNU General Public License version 2 or later
Module Attributes
Cache of filenames as known by the database |
|
How many bytes are "wasted" by files not referenced in database |
|
List of files which are excluded from files check |
|
now() |
Functions
|
|
Add missing source checksums to source_metadata |
|
Validate build-dependencies of .dsc files in the archive |
|
Validate all files |
|
Parse every .dsc file in the archive and check for it's validity. |
|
Prepare the dictionary of existing filenames, then walk through the archive pool/ directory to compare it. |
|
Ensure each .dsc lists appropriate files in its Files field (according to the format announced in its Format field). |
|
Check files in the database aren't symlinks |
|
Ensure files mentioned in Packages & Sources exist |
|
Check for missing overrides in stable and unstable. |
|
Ensure that the source files for any given package is all in one directory so that 'apt-get source' works... |
|
Check all files for timestamps in the future; common from hardware (e.g. |
|
|
|
|
|
|
Process a directory and output every files name which is not listed already in the filenames or global |
|
|
|
Ensure files mentioned in Packages exist |
|
Ensure files mentioned in Sources exist |
- dak.check_archive.add_missing_source_checksums()[source]¶
Add missing source checksums to source_metadata
- dak.check_archive.check_build_depends()[source]¶
Validate build-dependencies of .dsc files in the archive
- dak.check_archive.check_dscs()[source]¶
Parse every .dsc file in the archive and check for it’s validity.
- dak.check_archive.check_files()[source]¶
Prepare the dictionary of existing filenames, then walk through the archive pool/ directory to compare it.
- dak.check_archive.check_files_in_dsc()[source]¶
Ensure each .dsc lists appropriate files in its Files field (according to the format announced in its Format field).
- dak.check_archive.check_indices_files_exist()[source]¶
Ensure files mentioned in Packages & Sources exist
- dak.check_archive.check_source_in_one_dir()[source]¶
Ensure that the source files for any given package is all in one directory so that ‘apt-get source’ works…
- dak.check_archive.check_timestamps()[source]¶
Check all files for timestamps in the future; common from hardware (e.g. alpha) which have far-future dates as their default dates.
- dak.check_archive.current_time = 1730329854.5374424¶
now()
- dak.check_archive.db_files = {}¶
Cache of filenames as known by the database
- dak.check_archive.excluded = {}¶
List of files which are excluded from files check
- dak.check_archive.process_dir(unused, dirname: str, filenames: dict) None [source]¶
Process a directory and output every files name which is not listed already in the filenames or global
excluded
dictionaries.- Parameters:
dirname – the directory to look at
filenames – Known filenames to ignore
- dak.check_archive.validate_packages(suite, component, architecture)[source]¶
Ensure files mentioned in Packages exist
- dak.check_archive.validate_sources(suite, component)[source]¶
Ensure files mentioned in Sources exist
- dak.check_archive.waste = 0.0¶
How many bytes are “wasted” by files not referenced in database