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

Module upload

source code

module to handle uploads not yet installed to the archive

This module provides classes to handle uploads not yet installed to the archive. Central is the Changes class which represents a changes file. It provides methods to access the included binary and source packages.

Classes [hide private]
  UploadException
  InvalidChangesException
  InvalidBinaryException
  InvalidSourceException
  InvalidHashException
  InvalidFilenameException
  FileDoesNotExist
  HashedFile
file with checksums
  Changes
Representation of a .changes file
  Binary
Representation of a binary package
  Source
Representation of a source package
Functions [hide private]
dict
parse_file_list(control, has_priority_and_section, safe_file_regexp=re_file_safe, fields=('Files','Checksums-Sha1','Checksums-Sha256'))
Parse Files and Checksums-* fields
source code

Imports: apt_inst, apt_pkg, errno, functools, os, AptVersion, SignedFile, daklib


Function Details [hide private]

parse_file_list(control, has_priority_and_section, safe_file_regexp=re_file_safe, fields=('Files','Checksums-Sha1','Checksums-Sha256'))

source code 

Parse Files and Checksums-* fields

Parameters:
  • control (dict-like) - control file to take fields from
  • has_priority_and_section (bool) - Files field include section and priority (as in .changes)
Returns: dict
dict mapping filenames to daklib.upload.HashedFile objects
Raises: