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. alpha) which have far-future dates as their default dates. |
|
|
|
|
|
|
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.Ent(Kind, Name, Link, Mode, UID, GID, Size, MTime: int, Major, Minor) None[source]¶
- dak.check_archive.add_missing_source_checksums() None[source]¶
Add missing source checksums to source_metadata
- dak.check_archive.check_build_depends() None[source]¶
Validate build-dependencies of .dsc files in the archive
- dak.check_archive.check_dscs() None[source]¶
Parse every .dsc file in the archive and check for it’s validity.
- dak.check_archive.check_files() None[source]¶
Prepare the dictionary of existing filenames, then walk through the archive pool/ directory to compare it.
- dak.check_archive.check_files_in_dsc() None[source]¶
Ensure each .dsc lists appropriate files in its Files field (according to the format announced in its Format field).
- dak.check_archive.check_files_not_symlinks() None[source]¶
Check files in the database aren’t symlinks
- dak.check_archive.check_indices_files_exist() None[source]¶
Ensure files mentioned in Packages & Sources exist
- dak.check_archive.check_override() None[source]¶
Check for missing overrides in stable and unstable.
- dak.check_archive.check_source_in_one_dir() None[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() None[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 = 1767542058.037876¶
now()
- dak.check_archive.process_dir(dirname: str, filenames: dict) None[source]¶
Process a directory and output every files name which is not listed already in the filenames or global
excludeddictionaries.- Parameters:
dirname – the directory to look at
filenames – Known filenames to ignore
- dak.check_archive.validate_packages(suite: str, component: str, architecture: str) None[source]¶
Ensure files mentioned in Packages exist
- dak.check_archive.validate_sources(suite: str, component: str) None[source]¶
Ensure files mentioned in Sources exist
- dak.check_archive.waste = 0.0¶
How many bytes are “wasted” by files not referenced in database